Revert "KVM: No need to retry for hva_to_pfn_remapped()"
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 May 2020 09:42:55 +0000 (05:42 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:26:05 +0000 (04:26 -0400)
commita8387d0b471f7c8d4d936af0d6dc44dff5c41c6c
tree32c5927976e9b8a29ea2337d81a27cfbf3cf2a17
parentcc440cdad5b7a4c1de12dace725209eb3e0cf663
Revert "KVM: No need to retry for hva_to_pfn_remapped()"

This reverts commit 5b494aea13fe9ec67365510c0d75835428cbb303.
If unlocked==true then the vma pointer could be invalidated, so the 2nd
follow_pfn() is potentially racy: we do need to get out and redo
find_vma_intersection().

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c