diff options
author | Avi Kivity <avi@qumranet.com> | 2007-10-28 12:48:59 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:52:57 -0500 |
commit | 3067714cf59bd4a6dbf788b709485bc62c1ff845 (patch) | |
tree | 4cdfba475258886666150e638568e6ad5e8c0e2f /drivers/kvm/x86.h | |
parent | c7e75a3db4ecd952e7a5562cea1b27007bf0c01c (diff) |
KVM: Move page fault processing to common code
The code that dispatches the page fault and emulates if we failed to map
is duplicated across vmx and svm. Merge it to simplify further bugfixing.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/x86.h')
-rw-r--r-- | drivers/kvm/x86.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/kvm/x86.h b/drivers/kvm/x86.h index 01452b552db..20da8e9751c 100644 --- a/drivers/kvm/x86.h +++ b/drivers/kvm/x86.h | |||
@@ -85,11 +85,7 @@ struct kvm_vcpu { | |||
85 | struct x86_emulate_ctxt emulate_ctxt; | 85 | struct x86_emulate_ctxt emulate_ctxt; |
86 | }; | 86 | }; |
87 | 87 | ||
88 | static inline int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t gva, | 88 | int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t gva, u32 error_code); |
89 | u32 error_code) | ||
90 | { | ||
91 | return vcpu->mmu.page_fault(vcpu, gva, error_code); | ||
92 | } | ||
93 | 89 | ||
94 | static inline void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu) | 90 | static inline void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu) |
95 | { | 91 | { |