KVM: PPC: Use __kvm_faultin_pfn() to handle page faults on Book3s HV
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:24:02 +0000 (11:24 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 17:00:48 +0000 (13:00 -0400)
commit0865ba14b4ee94edea60897bc4a38ead054c7ab4
treeaf43462f719d43b94f70ecd082b53dbe3d53ee25
parent334511d468e5b61e9b4b1432145e51dbce365888
KVM: PPC: Use __kvm_faultin_pfn() to handle page faults on Book3s HV

Replace Book3s HV's homebrewed fault-in logic with __kvm_faultin_pfn(),
which functionally does pretty much the exact same thing.

Note, when the code was written, KVM indeed didn't do fast GUP without
"!atomic && !async", but that has long since changed (KVM tries fast GUP
for all writable mappings).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-61-seanjc@google.com>
arch/powerpc/kvm/book3s_64_mmu_hv.c