Skip to content

Commit

Permalink
KVM: x86/mmu: kvm_faultin_pfn has to return false if pfh is returned
Browse files Browse the repository at this point in the history
This looks like a typo in 8f32d5e. This change didn't intend to do
any functional changes.

The problem was caught by gVisor tests.

Fixes: 8f32d5e ("KVM: x86/mmu: allow kvm_faultin_pfn to return page fault handling code")
Cc: Maxim Levitsky <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Signed-off-by: Andrei Vagin <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
avagin authored and bonzini committed Oct 18, 2021
1 parent 542a264 commit a7cc099
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/kvm/mmu/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7cc099

Please sign in to comment.