]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: GICv3: Handle in-LR deactivation when possible
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Nov 2025 17:25:22 +0000 (17:25 +0000)
committerOliver Upton <oupton@kernel.org>
Mon, 24 Nov 2025 22:29:14 +0000 (14:29 -0800)
commitca3c34da3644a24daf248be5dba72783c338dad4
treee4489fe05aff0d75ca554259e86fa2e69810e837
parent1c3b3cadcd69f7415e8b3b1b1e81459e0e8c9f33
KVM: arm64: GICv3: Handle in-LR deactivation when possible

Even when we have either an LR overflow or SPIs in flight, it is
extremely likely that the interrupt being deactivated is still in
the LRs, and that going all the way back to the the generic trap
handling code is a waste of time.

Instead, try and deactivate in place when possible, and only if
this fails, perform a full exit.

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