Skip to content

Commit

Permalink
[PATCH] KVM: Disallow the kvm-amd module on intel hardware, and vice …
Browse files Browse the repository at this point in the history
…versa

They're not on speaking terms.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Avi Kivity authored and Linus Torvalds committed Dec 13, 2006
1 parent 802ba06 commit 873a7c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions drivers/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ static __init int svm_hardware_setup(void)
void *msrpm_va;
int r;

kvm_emulator_want_group7_invlpg();

iopm_pages = alloc_pages(GFP_KERNEL, IOPM_ALLOC_ORDER);

Expand Down Expand Up @@ -1628,9 +1629,7 @@ static struct kvm_arch_ops svm_arch_ops = {

static int __init svm_init(void)
{
kvm_emulator_want_group7_invlpg();
kvm_init_arch(&svm_arch_ops, THIS_MODULE);
return 0;
return kvm_init_arch(&svm_arch_ops, THIS_MODULE);
}

static void __exit svm_exit(void)
Expand Down
3 changes: 1 addition & 2 deletions drivers/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2000,8 +2000,7 @@ static struct kvm_arch_ops vmx_arch_ops = {

static int __init vmx_init(void)
{
kvm_init_arch(&vmx_arch_ops, THIS_MODULE);
return 0;
return kvm_init_arch(&vmx_arch_ops, THIS_MODULE);
}

static void __exit vmx_exit(void)
Expand Down

0 comments on commit 873a7c4

Please sign in to comment.