Commit 4cf20d4
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>1 parent fe140e6 commit 4cf20d4
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
1309 | | - | |
1310 | 1309 | | |
1311 | 1310 | | |
1312 | 1311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6367 | 6367 | | |
6368 | 6368 | | |
6369 | 6369 | | |
| 6370 | + | |
6370 | 6371 | | |
6371 | 6372 | | |
| 6373 | + | |
| 6374 | + | |
6372 | 6375 | | |
6373 | 6376 | | |
6374 | 6377 | | |
| |||
6400 | 6403 | | |
6401 | 6404 | | |
6402 | 6405 | | |
6403 | | - | |
| 6406 | + | |
6404 | 6407 | | |
6405 | 6408 | | |
6406 | 6409 | | |
| |||
6416 | 6419 | | |
6417 | 6420 | | |
6418 | 6421 | | |
6419 | | - | |
| 6422 | + | |
6420 | 6423 | | |
6421 | 6424 | | |
6422 | 6425 | | |
| |||
6483 | 6486 | | |
6484 | 6487 | | |
6485 | 6488 | | |
6486 | | - | |
6487 | 6489 | | |
6488 | 6490 | | |
6489 | 6491 | | |
| |||
0 commit comments