]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: gic: Check for vGICv3 when clearing TWI
authorSascha Bischoff <Sascha.Bischoff@arm.com>
Tue, 6 Jan 2026 16:52:10 +0000 (16:52 +0000)
committerOliver Upton <oupton@kernel.org>
Thu, 8 Jan 2026 20:49:21 +0000 (12:49 -0800)
commit5e8b511c39f35dcbf2e548a75d49782778c2df48
tree09a00ce85cbca314eefbd38d8e4d45d78ee45c3a
parentf8f9c1f4d0c7a64600e2ca312dec824a0bc2f1da
KVM: arm64: gic: Check for vGICv3 when clearing TWI

Explicitly check for the vgic being v3 when disabling TWI. Failure to
check this can result in using the wrong view of the vgic CPU IF union
causing undesirable/unexpected behaviour.

Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://msgid.link/20260106165154.3321753-1-sascha.bischoff@arm.com
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/kvm/arm.c