Skip to content

KVM: arm64: vgic-v3: MMIO-based LPI invalidation and co

Marc Zyngier kvm kvmarm linux-arm-kernel lkml 2 versions – Applied

Status from this message: The following commit has been merged into the irq/irqchip-next branch of irqchip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesApplied
  2. v14 patches 8 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4irqchip/gic-v3: Exposes bit values for GICR_CTLR.{IR,CES}include/linux/irqchip/arm-gic-v3.h+2 -01 reply
2/4KVM: arm64: vgic-v3: Expose GICR_CTLR.RWP when disabling LPIsarch/arm64/kvm/vgic/vgic-its.c arch/arm64/kvm/vgic/vgic-mmio-v3.c arch/arm64/kvm/vgic/vgic.h +1 more+31 -120 replies
3/4KVM: arm64: vgic-v3: Implement MMIO-based LPI invalidationarch/arm64/kvm/vgic/vgic-its.c arch/arm64/kvm/vgic/vgic-mmio-v3.c arch/arm64/kvm/vgic/vgic.h +1 more+112 -211 reply
4/4KVM: arm64: vgic-v3: Advertise GICR_CTLR.{IR,CES} as a new GICD_IIDR revisionarch/arm64/kvm/vgic/vgic-init.c arch/arm64/kvm/vgic/vgic-mmio-v2.c arch/arm64/kvm/vgic/vgic-mmio-v3.c +2 more+50 -60 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchOliver Upton
1/4R-b
2/4R-b
3/4R-b
4/4

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

Read the v2 thread

Cover letter [PATCH v2 0/4] KVM: arm64: vgic-v3: MMIO-based LPI invalidation and co

Since revision IHI0069G of the GICv3 spec, an implementation is allowed to implement MMIO-based LPI invalidation, without having to support RVPEI (which is essentially a GICv4.1 feature).

This has the potential to make workloads using heavy LPI invalidation fare a bit better, as they don't need to lock the access to the command queue.

Similarly, an implementation can now expose that it allows LPIs to be turned off, something that we always supported.

This series implements both these features, exposing the new GICR_{INVLPIR,INVALLR,SYNCR} registers, transitions of the GICR_CTLR.RWP bit on LPI disabling, and finally exposes these to userspace and the guest with a new GICD_IIDR revision (and the ability to save/restore it).

This series has been extremely useful to debug related GIC features, and will be complemented by a few GIC driver patches.

* From v1 [1]:
- Fixed CES and IR bit numbers (shrug...)
- Plenty of small fixes all over the shop thanks to Oliver
- Rebased on top of 5.18-rc1

[1] https://lore.kernel.org/r/[email protected]

Marc Zyngier (4):
irqchip/gic-v3: Exposes bit values for GICR_CTLR.{IR,CES}
KVM: arm64: vgic-v3: Expose GICR_CTLR.RWP when disabling LPIs
KVM: arm64: vgic-v3: Implement MMIO-based LPI invalidation
KVM: arm64: vgic-v3: Advertise GICR_CTLR.{IR,CES} as a new GICD_IIDR
revision

 arch/arm64/kvm/vgic/vgic-init.c    |   7 +-
 arch/arm64/kvm/vgic/vgic-its.c     |  64 ++++++++++-----
 arch/arm64/kvm/vgic/vgic-mmio-v2.c |  18 ++++-
 arch/arm64/kvm/vgic/vgic-mmio-v3.c | 125 ++++++++++++++++++++++++++---
 arch/arm64/kvm/vgic/vgic.h         |  10 +++
 include/kvm/arm_vgic.h             |   8 +-
 include/linux/irqchip/arm-gic-v3.h |   2 +
 7 files changed, 195 insertions(+), 39 deletions(-)
Signature · 6 lines
2.34.1

_______________________________________________
kvmarm mailing list
[email protected]
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm