]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: PPC: Use __kvm_faultin_pfn() to handle page faults on Book3s Radix
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:24:03 +0000 (11:24 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 17:00:48 +0000 (13:00 -0400)
commit431d2f7dcbde3646faa0f14b7e046520498f85eb
tree05c512561cffdf3373b453cab48bb9b7850328ba
parent0865ba14b4ee94edea60897bc4a38ead054c7ab4
KVM: PPC: Use __kvm_faultin_pfn() to handle page faults on Book3s Radix

Replace Book3s Radix's homebrewed (read: copy+pasted) 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-62-seanjc@google.com>
arch/powerpc/kvm/book3s_64_mmu_radix.c