]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Compute vgic state irrespective of the number of interrupts
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Nov 2025 17:25:09 +0000 (17:25 +0000)
committerOliver Upton <oupton@kernel.org>
Mon, 24 Nov 2025 22:29:12 +0000 (14:29 -0800)
commitdd598fc1139f7181118719574a4e270e51e0a0eb
tree43ed2f24595cf022bbecb653e4882fc039c74b93
parent0660bc4a2b70e7158f63ea1777132d1c93188fe8
KVM: arm64: Compute vgic state irrespective of the number of interrupts

As we are going to rely on the [G]ICH_HCR{,_EL2} register to be
programmed with MI information at all times, slightly de-optimise
the flush/sync code to always be called. This is rather lightweight
when no interrupts are in flight.

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-20-maz@kernel.org
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/kvm/vgic/vgic.c