]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Fold mmu_spte_update_no_track() into mmu_spte_update()
authorSean Christopherson <seanjc@google.com>
Fri, 11 Oct 2024 02:10:39 +0000 (19:10 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 30 Oct 2024 21:46:46 +0000 (14:46 -0700)
commit67c93802928b54fabc076f29f372e3f977590ca1
tree6d907cf48ee3ef4201524a045290feddaa353dc0
parent010344122dca7c9e772cc03d1534aa908e055f48
KVM: x86/mmu: Fold mmu_spte_update_no_track() into mmu_spte_update()

Fold the guts of mmu_spte_update_no_track() into mmu_spte_update() now
that the latter doesn't flush when clearing A/D bits, i.e. now that there
is no need to explicitly avoid TLB flushes when aging SPTEs.

Opportunistically WARN if mmu_spte_update() requests a TLB flush when
aging SPTEs, as aging should never modify a SPTE in such a way that KVM
thinks a TLB flush is needed.

Link: https://lore.kernel.org/r/20241011021051.1557902-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c