diff options
author | Alexander Graf <agraf@suse.de> | 2013-12-09 16:53:42 +0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-01-09 13:14:00 +0400 |
commit | 398a76c677a2612c1b03a8d20fbf116e3778ebec (patch) | |
tree | 18770eeb2f411ae76639c87838b299169e0d96f3 /arch/powerpc/kvm/e500mc.c | |
parent | 27025a602cb9d8b0fa5162b465334ef059a503b6 (diff) | |
download | linux-398a76c677a2612c1b03a8d20fbf116e3778ebec.tar.xz |
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/e500mc.c')
-rw-r--r-- | arch/powerpc/kvm/e500mc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500mc.c b/arch/powerpc/kvm/e500mc.c index 4132cd2fc171..17e456279224 100644 --- a/arch/powerpc/kvm/e500mc.c +++ b/arch/powerpc/kvm/e500mc.c @@ -16,6 +16,8 @@ #include <linux/slab.h> #include <linux/err.h> #include <linux/export.h> +#include <linux/miscdevice.h> +#include <linux/module.h> #include <asm/reg.h> #include <asm/cputable.h> @@ -391,3 +393,5 @@ static void __exit kvmppc_e500mc_exit(void) module_init(kvmppc_e500mc_init); module_exit(kvmppc_e500mc_exit); +MODULE_ALIAS_MISCDEV(KVM_MINOR); +MODULE_ALIAS("devname:kvm"); |