]> git.ipfire.org Git - thirdparty/linux.git/commit
irqchip/gic-v5: Check if impl is virt capable
authorSascha Bischoff <Sascha.Bischoff@arm.com>
Wed, 28 Jan 2026 18:07:33 +0000 (18:07 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 30 Jan 2026 11:14:25 +0000 (11:14 +0000)
commit3227c3a89d65fe7482312b7b27038d9ebd86f210
tree3190eb04160bac73ddbbc3c1ef6d1f5fbc7dba57
parent9435c1e1431003e23aa34ef8e46c30d09c3dbcb5
irqchip/gic-v5: Check if impl is virt capable

Now that there is support for creating a GICv5-based guest with KVM,
check that the hardware itself supports virtualisation, skipping the
setting of struct gic_kvm_info if not.

Note: If native GICv5 virt is not supported, then nor is
FEAT_GCIE_LEGACY, so we are able to skip altogether.

Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20260128175919.3828384-33-sascha.bischoff@arm.com
[maz: cosmetic changes]
Signed-off-by: Marc Zyngier <maz@kernel.org>
drivers/irqchip/irq-gic-v5-irs.c
drivers/irqchip/irq-gic-v5.c
include/linux/irqchip/arm-gic-v5.h