aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r--drivers/kvm/svm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 73a022c1f7b6..0e6bc8c649ce 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -377,6 +377,7 @@ static __init int svm_hardware_setup(void)
377 void *msrpm_va; 377 void *msrpm_va;
378 int r; 378 int r;
379 379
380 kvm_emulator_want_group7_invlpg();
380 381
381 iopm_pages = alloc_pages(GFP_KERNEL, IOPM_ALLOC_ORDER); 382 iopm_pages = alloc_pages(GFP_KERNEL, IOPM_ALLOC_ORDER);
382 383
@@ -1628,9 +1629,7 @@ static struct kvm_arch_ops svm_arch_ops = {
1628 1629
1629static int __init svm_init(void) 1630static int __init svm_init(void)
1630{ 1631{
1631 kvm_emulator_want_group7_invlpg(); 1632 return kvm_init_arch(&svm_arch_ops, THIS_MODULE);
1632 kvm_init_arch(&svm_arch_ops, THIS_MODULE);
1633 return 0;
1634} 1633}
1635 1634
1636static void __exit svm_exit(void) 1635static void __exit svm_exit(void)