Skip to content

Handle forwarded level-triggered interrupts

Christoffer Dall kvm kvmarm linux-arm-kernel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 5 repliesIn review
  2. v26 patches 5 repliesSuperseded
  3. v1 RFC4 patches 13 repliesSuperseded

Changes in v3 from the cover letter

- Removed patch 5 from v2 and integrating the changes in what's now patch 5 to make it easier to reuse code when adding VFIO integration.
- Changed the virtual distributor MMIO handling to use the pending_latch and more closely match the semantics of SPENDR and CPENDR for both level and edge mapped interrupts.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5KVM: arm/arm64: Don't cache the timer IRQ levelvirt/kvm/arm/arch_timer.c+8 -60 replies
2/5KVM: arm/arm64: vgic: restructure kvm_vgic_(un)map_phys_irqinclude/kvm/arm_vgic.h virt/kvm/arm/arch_timer.c virt/kvm/arm/vgic/vgic.c+51 -410 replies
3/5KVM: arm/arm64: vgic: Support level-triggered mapped interruptsvirt/kvm/arm/vgic/vgic-v2.c virt/kvm/arm/vgic/vgic-v3.c virt/kvm/arm/vgic/vgic.c +1 more+88 -00 replies
4/5KVM: arm/arm64: Support VGIC dist pend/active changes for mapped IRQsvirt/kvm/arm/vgic/vgic-mmio.c virt/kvm/arm/vgic/vgic.c virt/kvm/arm/vgic/vgic.h+41 -05 replies
5/5KVM: arm/arm64: Provide a vgic interrupt line level sample functioninclude/kvm/arm_vgic.h virt/kvm/arm/arch_timer.c virt/kvm/arm/vgic/vgic.c+36 -50 replies

Reviews trailers per patch

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

PatchMarc Zyngier
1/5
2/5A-b
3/5R-b
4/5
5/5R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/5] Handle forwarded level-triggered interrupts

This series illustrates an alternative approach to Eric Auger's direct EOI setup patches [1] in terms of the KVM VGIC support.

The idea is to maintain existing semantics for the VGIC for mapped level-triggered IRQs and think support for the timer into it.

Patch 1 is necessary to align the timer and VFIO ways of signaling the VGIC. Patch 2 is stolen from Eric's series and is necessary for these patches to compile as well. Patch 3 includes the core support for mapped level-triggered interrupts. Patch 4 handles guest MMIO access to the virtual distributor. Patch 5 moves some code around for patch 6. Patch 6 implements an optimization for the timer. The last two patches could be deferred until the timer optimization series.

Based on v4.13

Changes since v2:
- Removed patch 5 from v2 and integrating the changes in what's now patch 5 to make it easier to reuse code when adding VFIO integration.
- Changed the virtual distributor MMIO handling to use the pending_latch and more closely match the semantics of SPENDR and CPENDR for both level and edge mapped interrupts.

Changes since v1:
- Added necessary changes to the timer (Patch 1)
- Added handling of guest MMIO accesses to the virtual distributor (Patch 4)
- Addressed Marc's comments from the initial RFC (mostly renames)

Thanks,
-Christoffer

---

Christoffer Dall (4):
KVM: arm/arm64: Don't cache the timer IRQ level
KVM: arm/arm64: vgic: Support level-triggered mapped interrupts
KVM: arm/arm64: Support VGIC dist pend/active changes for mapped IRQs
KVM: arm/arm64: Provide a vgic interrupt line level sample function

Eric Auger (1):
KVM: arm/arm64: vgic: restructure kvm_vgic_(un)map_phys_irq

 include/kvm/arm_vgic.h        | 19 +++++++--
 virt/kvm/arm/arch_timer.c     | 52 +++++++++++------------
 virt/kvm/arm/vgic/vgic-mmio.c | 33 +++++++++++++++
 virt/kvm/arm/vgic/vgic-v2.c   | 29 +++++++++++++
 virt/kvm/arm/vgic/vgic-v3.c   | 29 +++++++++++++
 virt/kvm/arm/vgic/vgic.c      | 96 ++++++++++++++++++++++++++++++++++++-------
 virt/kvm/arm/vgic/vgic.h      |  8 ++++
 7 files changed, 219 insertions(+), 47 deletions(-)
Signature · 1 line
2.9.0