Re: [PATCH] KVM: SVM: limit kvm_handle_page_fault to #PF handling
From: Radim KrÄmÃÅ
Date: Tue Oct 10 2017 - 15:02:01 EST
2017-10-10 10:49+0200, Paolo Bonzini:
> 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.
>
> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
> ---
And we also drop the unneeded pv async_pf switch,
Reviewed-by: Radim KrÄmÃÅ <rkrcmar@xxxxxxxxxx>