diff options
author | Vipin Sharma <vipinsh@google.com> | 2024-11-01 13:14:37 -0700 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-11-04 19:22:53 -0800 |
commit | 4cf20d42543cff8778f70b0c29def984098641a5 (patch) | |
tree | 683109e5edef86ddc0fe1b0c0bc336e8a44d0830 /virt | |
parent | fe140e611d3450708a962d937546c7bd164183ea (diff) | |
download | linux-4cf20d42543cff8778f70b0c29def984098641a5.tar.gz linux-4cf20d42543cff8778f70b0c29def984098641a5.tar.bz2 linux-4cf20d42543cff8778f70b0c29def984098641a5.zip |
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>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions