aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-07-29 01:35:31 +0000
committerPaolo Bonzini <[email protected]>2023-08-31 18:08:16 +0000
commite18c5429e0c4bf7b550211245dcbfc61e71a7e6f (patch)
tree62657b61e455e13008fd67d0f7e88057dfffc697 /tools/perf/scripts/python/mem-phys-addr.py
parentKVM: x86/mmu: Rename page-track APIs to reflect the new reality (diff)
downloadkernel-e18c5429e0c4bf7b550211245dcbfc61e71a7e6f.tar.gz
kernel-e18c5429e0c4bf7b550211245dcbfc61e71a7e6f.zip
KVM: x86/mmu: Assert that correct locks are held for page write-tracking
When adding/removing gfns to/from write-tracking, assert that mmu_lock is held for write, and that either slots_lock or kvm->srcu is held. mmu_lock must be held for write to protect gfn_write_track's refcount, and SRCU or slots_lock must be held to protect the memslot itself. Tested-by: Yan Zhao <[email protected]> Tested-by: Yongwei Ma <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions