summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-03-02 16:51:05 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2022-03-08 17:31:50 +0300
commit614f6970aa70242a3f8a8051b01244c029f77b2a (patch)
tree7fed2fb3b95db2290cadb58bf886b1a9d3c77225 /tools/perf/scripts/python/exported-sql-viewer.py
parent7c554d8e51a9cf5c0a142b4af825d96da67c57fa (diff)
downloadlinux-614f6970aa70242a3f8a8051b01244c029f77b2a.tar.xz
KVM: x86/mmu: do not allow readers to acquire references to invalid roots
Remove the "shared" argument of for_each_tdp_mmu_root_yield_safe, thus ensuring that readers do not ever acquire a reference to an invalid root. After this patch, all readers except kvm_tdp_mmu_zap_invalidated_roots() treat refcount=0/valid, refcount=0/invalid and refcount=1/invalid in exactly the same way. kvm_tdp_mmu_zap_invalidated_roots() is different but it also does not acquire a reference to the invalid root, and it cannot see refcount=0/invalid because it is guaranteed to run after kvm_tdp_mmu_invalidate_all_roots(). Opportunistically add a lockdep assertion to the yield-safe iterator. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions