]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: vgic-v4: Fall back to software irqbypass if LPI not found
authorOliver Upton <oliver.upton@linux.dev>
Wed, 26 Feb 2025 18:31:23 +0000 (10:31 -0800)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 26 Feb 2025 21:22:49 +0000 (13:22 -0800)
commit5c57533eb8c1efeeab4e2e417fa983d65707b925
tree741e27b722c7e59b6aeb0ca2c1a692e4767c4234
parentd0b79563fd60c063ee4ad2a76024e60338ed3881
KVM: arm64: vgic-v4: Fall back to software irqbypass if LPI not found

Continuing with the theme of broken VMMs and guests, irqbypass
registration can fail if the virtual ITS lacks a translation for the
MSI. Either the guest hasn't mapped it or userspace may have forgotten
to restore the ITS.

Exit silently and allow irqbypass configuration to succeed. As a reward
for ingenuity, LPIs are demoted to software injection.

Tested-by: Sudheer Dantuluri <dantuluris@google.com>
Fixes: 196b136498b3 ("KVM: arm/arm64: GICv4: Wire mapping/unmapping of VLPIs in VFIO irq bypass")
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250226183124.82094-4-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/vgic/vgic-v4.c