Skip to content

Commit

Permalink
KVM: SVM: Auto-load on CPUs with SVM
Browse files Browse the repository at this point in the history
Enable x86 feature-based autoloading for the kvm-amd module on CPUs
with X86_FEATURE_SVM.

Signed-off-by: Josh Triplett <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
  • Loading branch information
joshtriplett authored and matosatti committed Apr 16, 2012
1 parent 9de6fe9 commit ae75954
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "x86.h"

#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/kernel.h>
#include <linux/vmalloc.h>
#include <linux/highmem.h>
Expand All @@ -42,6 +43,12 @@
MODULE_AUTHOR("Qumranet");
MODULE_LICENSE("GPL");

static const struct x86_cpu_id svm_cpu_id[] = {
X86_FEATURE_MATCH(X86_FEATURE_SVM),
{}
};
MODULE_DEVICE_TABLE(x86cpu, svm_cpu_id);

#define IOPM_ALLOC_ORDER 2
#define MSRPM_ALLOC_ORDER 1

Expand Down

0 comments on commit ae75954

Please sign in to comment.