diff options
author | Sean Christopherson <seanjc@google.com> | 2023-07-29 04:35:31 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-08-31 21:08:16 +0300 |
commit | e18c5429e0c4bf7b550211245dcbfc61e71a7e6f (patch) | |
tree | 62657b61e455e13008fd67d0f7e88057dfffc697 /tools/perf/scripts/python/stackcollapse.py | |
parent | 7b574863e71833b5a4907245c1d95e76d507b984 (diff) | |
download | linux-e18c5429e0c4bf7b550211245dcbfc61e71a7e6f.tar.xz |
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 <yan.y.zhao@intel.com>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Link: https://lore.kernel.org/r/20230729013535.1070024-26-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions