KVM: arm64: Fixes/clarification for GICv4 vLPI injection
Status from this message: Applied to next, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | KVM: arm64: vgic-v4: Only attempt vLPI mapping for actual MSIsarch/ | +12 | 0 replies | |
| 2/4 | KVM: arm64: vgic-v4: Only WARN for HW IRQ mismatch when unmapping vLPIarch/ | +1 | 0 replies | |
| 3/4 | KVM: arm64: vgic-v4: Fall back to software irqbypass if LPI not foundarch/ | +10 | 0 replies | |
| 4/4 | KVM: arm64: Document ordering requirements for irqbypassDocumentation/ | +4 | 0 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.
| Patch | Sudheer Dantuluri | Marc Zyngier |
|---|---|---|
| Series | A-b | |
| 1/4 | T-b | |
| 2/4 | T-b | |
| 3/4 | T-b | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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