diff options
| author | Vipin Sharma <[email protected]> | 2024-11-01 20:14:37 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-11-05 03:22:53 +0000 |
| commit | 4cf20d42543cff8778f70b0c29def984098641a5 (patch) | |
| tree | 683109e5edef86ddc0fe1b0c0bc336e8a44d0830 /rust/helpers/helpers.c | |
| parent | KVM: x86/mmu: Remove KVM's MMU shrinker (diff) | |
| download | kernel-4cf20d42543cff8778f70b0c29def984098641a5.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[sean: split to separate patch, write changelog]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
