diff options
| author | Sean Christopherson <[email protected]> | 2020-06-23 12:35:39 -0700 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-07-08 16:21:51 -0400 |
| commit | f95eec9bed76d42194c23153cb1cc8f186bf91cb (patch) | |
| tree | f6bf50e440bde696a5d27b98b32887db2e221069 /tools/perf/scripts/python/netdev-times.py | |
| parent | fb58a9c345f645f1774dcf6a36fda169253008ae (diff) | |
KVM: x86/mmu: Don't put invalid SPs back on the list of active pages
Delete a shadow page from the invalidation list instead of throwing it
back on the list of active pages when it's a root shadow page with
active users. Invalid active root pages will be explicitly freed by
mmu_free_root_page() when the root_count hits zero, i.e. they don't need
to be put on the active list to avoid leakage.
Use sp->role.invalid to detect that a shadow page has already been
zapped, i.e. is not on a list.
WARN if an invalid page is encountered when zapping pages, as it should
now be impossible.
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions