]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Add helper to "finish" handling a guest page fault
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:23:42 +0000 (11:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 16:59:08 +0000 (12:59 -0400)
commit7103853952957cad58f957142c72bf7a4644b7a9
tree4c3a99faedc15960580f21aa8c974ff219d807a0
parentfa8fe58d1e4d35e58a66dbc2a7c84bc5c0352240
KVM: x86/mmu: Add helper to "finish" handling a guest page fault

Add a helper to finish/complete the handling of a guest page, e.g. to
mark the pages accessed and put any held references.  In the near
future, this will allow improving the logic without having to copy+paste
changes into all page fault paths.  And in the less near future, will
allow sharing the "finish" API across all architectures.

No functional change intended.

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-41-seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h