]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Move GICv5 timer PPI validation into timer_irqs_are_valid()
authorMarc Zyngier <maz@kernel.org>
Wed, 1 Apr 2026 10:36:08 +0000 (11:36 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 1 Apr 2026 14:42:26 +0000 (15:42 +0100)
commit06c85b58e0b13e67f4e56cbba346201bfe95ad00
treecfdfe5c8d4088a3b5b1602c9b27cd33291400098
parentfbcbf259d97d340376a176de20bdc04687356949
KVM: arm64: Move GICv5 timer PPI validation into timer_irqs_are_valid()

Userspace can set the timer PPI numbers way before a GIC has been
created, leading to odd behaviours on GICv5 as we'd accept non
architectural PPI numbers.

Move the v5 check into timer_irqs_are_valid(), which aligns the
behaviour with the pre-v5 GICs, and is also guaranteed to run
only once a GIC has been configured.

Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Fixes: 9491c63b6cd7b ("KVM: arm64: gic-v5: Enlighten arch timer for GICv5")
Link: https://sashiko.dev/#/patchset/20260319154937.3619520-1-sascha.bischoff%40arm.com
Link: https://patch.msgid.link/20260401103611.357092-14-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arch_timer.c