]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Drop per-VM zapped_obsolete_pages list
authorVipin Sharma <vipinsh@google.com>
Fri, 1 Nov 2024 20:14:37 +0000 (13:14 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 5 Nov 2024 03:22:53 +0000 (19:22 -0800)
commit4cf20d42543cff8778f70b0c29def984098641a5
tree683109e5edef86ddc0fe1b0c0bc336e8a44d0830
parentfe140e611d3450708a962d937546c7bd164183ea
KVM: x86/mmu: Drop per-VM zapped_obsolete_pages list

Drop the per-VM zapped_obsolete_pages list now that the usage from the
defunct mmu_shrinker is gone, and instead use a local list to track pages
in kvm_zap_obsolete_pages(), the sole remaining user of
zapped_obsolete_pages.

Opportunistically add an assertion to verify and document that slots_lock
must be held, i.e. that there can only be one active instance of
kvm_zap_obsolete_pages() at any given time, and by doing so also prove
that using a local list instead of a per-VM list doesn't change any
functionality (beyond trivialities like list initialization).

Signed-off-by: Vipin Sharma <vipinsh@google.com>
Link: https://lore.kernel.org/r/20241101201437.1604321-2-vipinsh@google.com
[sean: split to separate patch, write changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/mmu.c