]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Add common helper to handle prefetching SPTEs
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:23:41 +0000 (11:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 16:59:08 +0000 (12:59 -0400)
commitfa8fe58d1e4d35e58a66dbc2a7c84bc5c0352240
tree68bc82ae4a6eccacbd0668de3bb00a6f01d7ed62
parent64d5cd99f78ec39edbc691bb332f34e6c22c32c9
KVM: x86/mmu: Add common helper to handle prefetching SPTEs

Deduplicate the prefetching code for indirect and direct MMUs.  The core
logic is the same, the only difference is that indirect MMUs need to
prefetch SPTEs one-at-a-time, as contiguous guest virtual addresses aren't
guaranteed to yield contiguous guest physical addresses.

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