diff options
author | Alexander Graf <agraf@suse.de> | 2013-12-09 13:53:42 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-01-09 10:14:00 +0100 |
commit | 398a76c677a2612c1b03a8d20fbf116e3778ebec (patch) | |
tree | 18770eeb2f411ae76639c87838b299169e0d96f3 /arch/powerpc/kvm/book3s.c | |
parent | 27025a602cb9d8b0fa5162b465334ef059a503b6 (diff) | |
download | blackbird-obmc-linux-398a76c677a2612c1b03a8d20fbf116e3778ebec.tar.gz blackbird-obmc-linux-398a76c677a2612c1b03a8d20fbf116e3778ebec.zip |
KVM: PPC: Add devname:kvm aliases for modules
Systems that support automatic loading of kernel modules through
device aliases should try and automatically load kvm when /dev/kvm
gets opened.
Add code to support that magic for all PPC kvm targets, even the
ones that don't support modules yet.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/book3s.c')
-rw-r--r-- | arch/powerpc/kvm/book3s.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c index 8912608b7e1b..48cf91bc862f 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c @@ -18,6 +18,8 @@ #include <linux/err.h> #include <linux/export.h> #include <linux/slab.h> +#include <linux/module.h> +#include <linux/miscdevice.h> #include <asm/reg.h> #include <asm/cputable.h> @@ -879,3 +881,9 @@ static void kvmppc_book3s_exit(void) module_init(kvmppc_book3s_init); module_exit(kvmppc_book3s_exit); + +/* On 32bit this is our one and only kernel module */ +#ifdef CONFIG_KVM_BOOK3S_32 +MODULE_ALIAS_MISCDEV(KVM_MINOR); +MODULE_ALIAS("devname:kvm"); +#endif |