]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Morph kvm_handle_gfn_range() into an aging specific helper
authorSean Christopherson <seanjc@google.com>
Fri, 9 Aug 2024 19:43:26 +0000 (12:43 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 10 Sep 2024 03:22:05 +0000 (20:22 -0700)
commitc17f150000f6b06061dc109bc2dd2858898a62b2
tree69d761db90f11f0f4befee1297496deb1cdb0a1e
parent548f87f667a38ffeb2f021d9cfbc1f1b34fb4cb5
KVM: x86/mmu: Morph kvm_handle_gfn_range() into an aging specific helper

Rework kvm_handle_gfn_range() into an aging-specic helper,
kvm_rmap_age_gfn_range().  In addition to purging a bunch of unnecessary
boilerplate code, this sets the stage for aging rmap SPTEs outside of
mmu_lock.

Note, there's a small functional change, as kvm_test_age_gfn() will now
return immediately if a young SPTE is found, whereas previously KVM would
continue iterating over other levels.

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