aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-09-09 07:12:54 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:27 -0400
commitb85b9ee9259917f248ee1507d7d1f575f4fc27dd (patch)
tree7455f36a04f4e87665a1b44dcfc1b5595eeb9289 /drivers/kvm/kvm.h
parentc9a1185c945c8db3185ad40092963cbb39192e31 (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/kvm.h')
-rw-r--r--drivers/kvm/kvm.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 7c353524af2b..9bf9ac6389b1 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -539,8 +539,6 @@ static inline int is_error_hpa(hpa_t hpa) { return hpa >> HPA_MSB; }
539hpa_t gva_to_hpa(struct kvm_vcpu *vcpu, gva_t gva); 539hpa_t gva_to_hpa(struct kvm_vcpu *vcpu, gva_t gva);
540struct page *gva_to_page(struct kvm_vcpu *vcpu, gva_t gva); 540struct page *gva_to_page(struct kvm_vcpu *vcpu, gva_t gva);
541 541
542void kvm_emulator_want_group7_invlpg(void);
543
544extern hpa_t bad_page_address; 542extern hpa_t bad_page_address;
545 543
546struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); 544struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn);