]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: vgic: Rationalise per-CPU irq accessor
authorMarc Zyngier <maz@kernel.org>
Wed, 20 May 2026 09:19:39 +0000 (10:19 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 22 May 2026 09:04:49 +0000 (10:04 +0100)
commit8f5dd53590b8a810a4004494bd2b07ad587464ed
tree82f5ce77d8f169b83e870d97a28aa1dc8dbb5d2e
parent319c1ceef7d236e80f8a8e048cda1f986457d834
KVM: arm64: vgic: Rationalise per-CPU irq accessor

Despite adding the necessary infrastructure to identify irq types,
vgic_get_vcpu_irq() treats GICv5 PPIs in a special way, which
impairs the readability of the code.

Use the existing irq classifiers to handle per-CPU irqs for all
vgic types, and let the normal control flow reach global interrupt
handling without any v5-specific path.

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20260520091949.542365-9-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/vgic/vgic.c