]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: gic: Enable GICv3 CPUIF trapping on GICv5 hosts if required
authorSascha Bischoff <Sascha.Bischoff@arm.com>
Mon, 8 Dec 2025 15:28:22 +0000 (15:28 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 27 Jan 2026 14:06:26 +0000 (14:06 +0000)
commitda63758c1876d899031066a9d4b8050af767ceb8
tree4aafb8a0fe4dd48ad693a787d2938812d3c991a3
parent9ace4753a5202b02191d54e9fdf7f9e3d02b85eb
KVM: arm64: gic: Enable GICv3 CPUIF trapping on GICv5 hosts if required

Factor out the enable (and printing of) the GICv3 CPUIF traps from the
main GICv3 probe into a separate function. Call said function from the
GICv5 probe for legacy support, ensuring that any required GICv3 CPUIF
traps on GICv5 hosts will be correctly handled, rather than injecting
an undef into the guest.

Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Link: https://patch.msgid.link/20251208152724.3637157-3-sascha.bischoff@arm.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/vgic/vgic-v3.c
arch/arm64/kvm/vgic/vgic-v5.c
arch/arm64/kvm/vgic/vgic.h