]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: Rename gfn_to_page_many_atomic() to kvm_prefetch_pages()
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:23:13 +0000 (11:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 16:55:12 +0000 (12:55 -0400)
commit6419bc52072b928acb764766968c672d5fede802
treec6dd7677460d3c36756ee9d7e9b9bfc5ecd2fff9
parent661fa987e4b5a020dd697689fabcd3701600ba6f
KVM: Rename gfn_to_page_many_atomic() to kvm_prefetch_pages()

Rename gfn_to_page_many_atomic() to kvm_prefetch_pages() to try and
communicate its true purpose, as the "atomic" aspect is essentially a
side effect of the fact that x86 uses the API while holding mmu_lock.
E.g. even if mmu_lock weren't held, KVM wouldn't want to fault-in pages,
as the goal is to opportunistically grab surrounding pages that have
already been accessed and/or dirtied by the host, and to do so quickly.

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-12-seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c