diff options
| author | Andrew Jones <andrew.jones@oss.qualcomm.com> | 2026-09-25 17:51:16 +0200 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-10-22 10:40:16 +0530 |
| commit | 80f6e72b21aa773e71c748e1e5a6d3aa8d458bd7 (patch) | |
| tree | 99ec52f27810fac0b81695fb50e1fd5941a7f379 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | bae99073549aba7c3d79685a4640a46aa5c55340 (diff) | |
RISC-V: KVM: Use a raw lock for IMSIC wakeup state
kvm_riscv_vcpu_aia_imsic_put() can run from the scheduler preemption
notifier while the raw runqueue lock is held. Taking vsfile_lock, an
rwlock_t, there violates the lockdep wait-context rules.
Protect the CPU/HGEI pair with a separate raw spinlock. All updates to
that pair retain vsfile_lock and take the new lock, while scheduler-out
uses only the new lock around the HGEIE update. This keeps the wakeup
setup serialized with VS-file publication and release without bringing
wider IMSIC operations into a raw critical section.
Fixes: 4cec89db80ba ("RISC-V: KVM: Move HGEI[E|P] CSR access to IMSIC virtualization")
Signed-off-by: Andrew Jones <andrew.jones@oss.qualcomm.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260925155116.465203-1-andrew.jones@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
