KVM: Move x86's API to release a faultin page to common KVM
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:23:51 +0000 (11:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 17:00:47 +0000 (13:00 -0400)
commitdc06193532af4ba88ed20daeef88f22b053ebb91
tree175e34eddbc1fc07b7eb2b6a06aad8d234de4f3c
parent8eaa98004b23e02adb3e11120132e0e2fecc6e0e
KVM: Move x86's API to release a faultin page to common KVM

Move KVM x86's helper that "finishes" the faultin process to common KVM
so that the logic can be shared across all architectures.  Note, not all
architectures implement a fast page fault path, but the gist of the
comment applies to all architectures.

Tested-by: Alex Bennée <alex.bennee@linaro.org>
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-50-seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
include/linux/kvm_host.h