]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: limit kvm_handle_page_fault to #PF handling
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Aug 2017 16:36:43 +0000 (18:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Oct 2017 12:01:55 +0000 (14:01 +0200)
commit3a2d76ea5a40291df06e136c1d5f2bcd344ed296
tree58eb32edc47951d19b07bc854890beeba7bb3b36
parentf484bdeb4ea07860c20fb69cdfb86260734869a4
KVM: SVM: limit kvm_handle_page_fault to #PF handling

It has always annoyed me a bit how SVM_EXIT_NPF is handled by
pf_interception.  This is also the only reason behind the
under-documented need_unprotect argument to kvm_handle_page_fault.
Let NPF go straight to kvm_mmu_page_fault, just like VMX
does in handle_ept_violation and handle_ept_misconfig.

Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c