]> git.ipfire.org Git - thirdparty/linux.git/commit
RISC-V: KVM: Check host Ssaia extension when creating AIA irqchip
authorAnup Patel <anup.patel@oss.qualcomm.com>
Tue, 20 Jan 2026 07:59:49 +0000 (13:29 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 6 Mar 2026 05:50:30 +0000 (11:20 +0530)
commitc61ec3e8cc5d46fa269434a9ec16ca36d362e0dd
tree6df0f8c7453902690c259b13dbaf0cb50315b0ba
parent24433b2b5c74a9fee7baa3a97a1947446868901d
RISC-V: KVM: Check host Ssaia extension when creating AIA irqchip

The KVM user-space may create KVM AIA irqchip before checking
VCPU Ssaia extension availability so KVM AIA irqchip must fail
when host does not have Ssaia extension.

Fixes: 89d01306e34d ("RISC-V: KVM: Implement device interface for AIA irqchip")
Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260120080013.2153519-4-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/aia_device.c