From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH] KVM: SVM: limit kvm_handle_page_fault to #PF handling Date: Tue, 10 Oct 2017 21:01:53 +0200 Message-ID: <20171010190152.GB28763@flask> References: <1507625383-23795-1-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Brijesh Singh To: Paolo Bonzini Return-path: Content-Disposition: inline In-Reply-To: <1507625383-23795-1-git-send-email-pbonzini@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org 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 > --- And we also drop the unneeded pv async_pf switch, Reviewed-by: Radim Krčmář