diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-09-09 07:12:54 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:27 -0400 |
commit | b85b9ee9259917f248ee1507d7d1f575f4fc27dd (patch) | |
tree | 7455f36a04f4e87665a1b44dcfc1b5595eeb9289 /drivers/kvm/svm.c | |
parent | c9a1185c945c8db3185ad40092963cbb39192e31 (diff) |
KVM: Clean up unloved invlpg emulation
invlpg shouldn't fetch the "src" address, since it may not be valid,
however SVM's "solution" which neuters emulation of all group 7
instruction is horrible and breaks kvm-lite. The simplest fix is to
put a special check in for invlpg.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index dbd4e813cbe4..e51f6b7f8ff3 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -376,8 +376,6 @@ static __init int svm_hardware_setup(void) | |||
376 | void *iopm_va, *msrpm_va; | 376 | void *iopm_va, *msrpm_va; |
377 | int r; | 377 | int r; |
378 | 378 | ||
379 | kvm_emulator_want_group7_invlpg(); | ||
380 | |||
381 | iopm_pages = alloc_pages(GFP_KERNEL, IOPM_ALLOC_ORDER); | 379 | iopm_pages = alloc_pages(GFP_KERNEL, IOPM_ALLOC_ORDER); |
382 | 380 | ||
383 | if (!iopm_pages) | 381 | if (!iopm_pages) |