diff options
| author | 2026-02-04 04:12:06 -0500 | |
|---|---|---|
| committer | 2026-03-11 18:41:11 +0100 | |
| commit | b54e4707a64be93a8ab3348e32e89817229b5eaa (patch) | |
| tree | 518fc1c07e4d4a879bb4937ef6f5bc03f9e90523 /tools/perf/scripts/python | |
| parent | KVM: VMX: Fix a wrong MSR update in add_atomic_switch_msr() (diff) | |
KVM: x86: Fix SRCU list traversal in kvm_fire_mask_notifiers()
The mask_notifier_list is protected by kvm->irq_srcu, but the traversal
in kvm_fire_mask_notifiers() incorrectly uses hlist_for_each_entry_rcu().
This leads to lockdep warnings because the standard RCU iterator expects
to be under rcu_read_lock(), not SRCU.
Replace the RCU variant with hlist_for_each_entry_srcu() and provide
the proper srcu_read_lock_held() annotation to ensure correct
synchronization and silence lockdep.
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Link: https://patch.msgid.link/20260204091206.2617-1-lirongqing@baidu.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
