diff options
| author | Andrew Jones <andrew.jones@oss.qualcomm.com> | 2026-09-25 18:03:00 +0200 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-10-09 15:48:21 +0530 |
| commit | a01f4c27a6ff5133408952aefd6289584a67ca67 (patch) | |
| tree | 492ef4c801638365dd482c80fe5e983c60739c13 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 3da5289d8d19e5a5398e725ad6186e5686e18737 (diff) | |
RISC-V: KVM: Reject vCPU creation after AIA initialization
AIA initialization sets up per-vCPU IMSIC state by iterating over all
online vCPUs. Creating another vCPU afterwards leaves it without
initialized IMSIC state, but KVM currently permits that sequence.
Reject KVM_CREATE_VCPU once AIA initialization succeeds. Both paths are
serialized by kvm->lock, so checking the initialized state from
kvm_arch_vcpu_precreate() freezes the vCPU set used by AIA.
Fixes: 89d01306e34d ("RISC-V: KVM: Implement device interface for AIA irqchip")
Signed-off-by: Andrew Jones <andrew.jones@oss.qualcomm.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260925160300.467884-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
