]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86/mmu: Add a helper to walk and zap rmaps for a memslot
authorSean Christopherson <seanjc@google.com>
Fri, 9 Aug 2024 19:43:24 +0000 (12:43 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 10 Sep 2024 03:22:03 +0000 (20:22 -0700)
commitdd9eaad744f4ed30913cca423439a1765a760c71
tree06343242fd57f241d45e0fdb6d0377f664a174e8
parent5b1fb116e1a636701627a6eb202d17be93e8f7a8
KVM: x86/mmu: Add a helper to walk and zap rmaps for a memslot

Add a dedicated helper to walk and zap rmaps for a given memslot so that
the code can be shared between KVM-initiated zaps and mmu_notifier
invalidations.

No functional change intended.

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