Skip to content

KVM: arm64: Fixes/clarification for GICv4 vLPI injection

Oliver Upton kvmarm 1 version Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: vgic-v4: Only attempt vLPI mapping for actual MSIsarch/arm64/kvm/arm.c+12 -00 replies
2/4KVM: arm64: vgic-v4: Only WARN for HW IRQ mismatch when unmapping vLPIarch/arm64/kvm/vgic/vgic-v4.c+1 -10 replies
3/4KVM: arm64: vgic-v4: Fall back to software irqbypass if LPI not foundarch/arm64/kvm/vgic/vgic-v4.c+10 -50 replies
4/4KVM: arm64: Document ordering requirements for irqbypassDocumentation/virt/kvm/devices/arm-vgic-its.rst+4 -10 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSudheer DantuluriMarc Zyngier
SeriesA-b
1/4T-b
2/4T-b
3/4T-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] KVM: arm64: Fixes/clarification for GICv4 vLPI injection

Small batch of fixes for vLPI injection issues that can happen when userspace is being mean:

- MSI interrupt sources could be mapped to non-MSI GSI routing entries. KVM doesn't account for the routing type and blindly attempts to map a vLPI.

- KVM_IRQFD mappings could be installed before the ITS has been restored, leading to kvm_vgic_v4_set_forwarding() failing due to the missing guest translation

Prevent userspace from triggering a WARN() because of these issues and gracefully fall back to software vLPI routing/injection should irqbypass fail.

I've thrown in some documentation on the restore ordering necessary to get GICv4 vLPI injection working correctly as well.

Marc, I'm planning to take these for 6.15.

Oliver Upton (4):
KVM: arm64: vgic-v4: Only attempt vLPI mapping for actual MSIs
KVM: arm64: vgic-v4: Only WARN for HW IRQ mismatch when unmapping vLPI
KVM: arm64: vgic-v4: Fall back to software irqbypass if LPI not found
KVM: arm64: Document ordering requirements for irqbypass

 Documentation/virt/kvm/devices/arm-vgic-its.rst |  5 ++++-
 arch/arm64/kvm/arm.c                            | 12 ++++++++++++
 arch/arm64/kvm/vgic/vgic-v4.c                   | 17 +++++++++++------
 3 files changed, 27 insertions(+), 7 deletions(-)

base-commit: 0ad2507d5d93f39619fc42372c347d6006b64319

Signature · 1 line
2.39.5