KVM: No need to retry for hva_to_pfn_remapped()
authorPeter Xu <peterx@redhat.com>
Thu, 16 Apr 2020 15:59:06 +0000 (11:59 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 May 2020 16:26:14 +0000 (12:26 -0400)
commit5b494aea13fe9ec67365510c0d75835428cbb303
tree9ed6d43f8a7c0fde6c9292ccc100271c522e4028
parentdd03bcaad0b1a62c8ea6297e6f2a5993c1c5cd30
KVM: No need to retry for hva_to_pfn_remapped()

hva_to_pfn_remapped() calls fixup_user_fault(), which has already
handled the retry gracefully.  Even if "unlocked" is set to true, it
means that we've got a VM_FAULT_RETRY inside fixup_user_fault(),
however the page fault has already retried and we should have the pfn
set correctly.  No need to do that again.

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