]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Disambiguate support for vSGIs v. vLPIs
authorOliver Upton <oliver.upton@linux.dev>
Thu, 24 Jul 2025 06:28:00 +0000 (23:28 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 26 Jul 2025 15:37:45 +0000 (08:37 -0700)
commit82221a4e66f044a5fe1d0acce10112a821655e8e
tree6c975cea061b886a73192131e365b0089edbb93c
parent86731a2a651e58953fc949573895f2fa6d456841
KVM: arm64: Disambiguate support for vSGIs v. vLPIs

vgic_supports_direct_msis() is a bit of a misnomer, as it returns true
if either vSGIs or vLPIs are supported. Pick it apart into a few
predicates and replace some open-coded checks for vSGIs, including an
opportunistic fix to always check if the CPUIF is capable of handling
vSGIs.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250724062805.2658919-2-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/vgic/vgic-init.c
arch/arm64/kvm/vgic/vgic-mmio-v3.c
arch/arm64/kvm/vgic/vgic-v4.c
arch/arm64/kvm/vgic/vgic.c
arch/arm64/kvm/vgic/vgic.h