mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-27 10:28:09 -04:00
KVM: x86/mmu: kvm_faultin_pfn has to return false if pfh is returned
This looks like a typo in8f32d5e563. This change didn't intend to do any functional changes. The problem was caught by gVisor tests. Fixes:8f32d5e563("KVM: x86/mmu: allow kvm_faultin_pfn to return page fault handling code") Cc: Maxim Levitsky <mlevitsk@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andrei Vagin <avagin@gmail.com> Message-Id: <20211015163221.472508-1-avagin@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
542a2640a2
commit
a7cc099f2e
@@ -3879,6 +3879,7 @@ static bool kvm_faultin_pfn(struct kvm_vcpu *vcpu, struct kvm_page_fault *fault,
|
||||
fault->pfn = __gfn_to_pfn_memslot(slot, fault->gfn, false, NULL,
|
||||
fault->write, &fault->map_writable,
|
||||
&fault->hva);
|
||||
return false;
|
||||
|
||||
out_retry:
|
||||
*r = RET_PF_RETRY;
|
||||
|
||||
Reference in New Issue
Block a user