diff options
author | Avi Kivity <avi@qumranet.com> | 2007-10-28 18:48:59 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 17:52:57 +0200 |
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 { struct x86_emulate_ctxt emulate_ctxt; }; -static inline int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t gva, - u32 error_code) -{ - return vcpu->mmu.page_fault(vcpu, gva, error_code); -} +int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t gva, u32 error_code); static inline void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu) { |