]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: MIPS: Mark "struct page" pfns accessed only in "slow" page fault path
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:24:12 +0000 (11:24 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 17:00:49 +0000 (13:00 -0400)
commit4d75f14fc869d8609fb1ac90085b3450898b83f5
tree7caca9dd7903cd2e848d0a0240d03bc45a8496b7
parentd8f4cda748eaf1edc2c31275c854277a2aaaa4cf
KVM: MIPS: Mark "struct page" pfns accessed only in "slow" page fault path

Mark pages accessed only in the slow page fault path in order to remove
an unnecessary user of kvm_pfn_to_refcounted_page().  Marking pages
accessed in the primary MMU during KVM page fault handling isn't harmful,
but it's largely pointless and likely a waste of a cycles since the
primary MMU will call into KVM via mmu_notifiers when aging pages.  I.e.
KVM participates in a "pull" model, so there's no need to also "push"
updates.

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-71-seanjc@google.com>
arch/mips/kvm/mmu.c