diff options
author | Josh Triplett <josh@joshtriplett.org> | 2012-03-28 14:32:28 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-04-16 19:35:04 -0400 |
commit | ae75954457eee0a608072368c5b477e40f378d7b (patch) | |
tree | c1302a9e2fa73fc0c6a03dc4f2e37309f5bd274e /arch/x86 | |
parent | 9de6fe91afcdc38efe398a9d42014a7c920a64db (diff) |
KVM: SVM: Auto-load on CPUs with SVM
Enable x86 feature-based autoloading for the kvm-amd module on CPUs
with X86_FEATURE_SVM.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/svm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index f3167208562e..f75af406b268 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "x86.h" | 22 | #include "x86.h" |
23 | 23 | ||
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | #include <linux/mod_devicetable.h> | ||
25 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
26 | #include <linux/vmalloc.h> | 27 | #include <linux/vmalloc.h> |
27 | #include <linux/highmem.h> | 28 | #include <linux/highmem.h> |
@@ -42,6 +43,12 @@ | |||
42 | MODULE_AUTHOR("Qumranet"); | 43 | MODULE_AUTHOR("Qumranet"); |
43 | MODULE_LICENSE("GPL"); | 44 | MODULE_LICENSE("GPL"); |
44 | 45 | ||
46 | static const struct x86_cpu_id svm_cpu_id[] = { | ||
47 | X86_FEATURE_MATCH(X86_FEATURE_SVM), | ||
48 | {} | ||
49 | }; | ||
50 | MODULE_DEVICE_TABLE(x86cpu, svm_cpu_id); | ||
51 | |||
45 | #define IOPM_ALLOC_ORDER 2 | 52 | #define IOPM_ALLOC_ORDER 2 |
46 | #define MSRPM_ALLOC_ORDER 1 | 53 | #define MSRPM_ALLOC_ORDER 1 |
47 | 54 | ||