]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: GICv2: Decouple GICH_HCR programming from LRs being loaded
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Nov 2025 17:25:06 +0000 (17:25 +0000)
committerOliver Upton <oupton@kernel.org>
Mon, 24 Nov 2025 22:29:12 +0000 (14:29 -0800)
commita00c88ac1f90992e618cf4737e2d1c551c13aed6
tree84ba4b7b017d67725663d02935f5710e4f9ae93a
parent5ceb3dac80229684c8e57993f12106cbad23f7ac
KVM: arm64: GICv2: Decouple GICH_HCR programming from LRs being loaded

Not programming GICH_HCR while no LRs are populated is a bit
of an issue, as we otherwise don't see any maintenance interrupt
when the guest interacts with the LRs.

Decouple the two and always program the control register, even when
we don't have to touch the LRs.

This is very similar to what we are already doing for GICv3.

Tested-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Tested-by: Mark Brown <broonie@kernel.org>
Link: https://msgid.link/20251120172540.2267180-17-maz@kernel.org
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/kvm/vgic/vgic-v2.c