Skip to content

KVM: arm64: Don't perform vgic-v2 lazy init on timer injection

Marc Zyngier kvmarm linux-arm-kernel 3 versions – Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 2 repliesApplied
  2. v24 patches 1 replySuperseded
  3. v14 patches 1 replySuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6KVM: arm64: timer: Repaint kvm_timer_{should,irq_can}_fire() to kvm_timer_{pending,enabled}()arch/arm64/kvm/arch_timer.c+27 -280 replies
2/6KVM: arm64: Simplify userspace notification of interrupt statearch/arm64/kvm/arch_timer.c arch/arm64/kvm/arm.c arch/arm64/kvm/pmu-emul.c +2 more+43 -540 replies
3/6KVM: arm64: timer: Kill the per-timer irq level cachearch/arm64/kvm/arch_timer.c include/kvm/arm_arch_timer.h+9 -160 replies
4/6KVM: arm64: pmu: Kill the PMU interrupt level cachearch/arm64/kvm/pmu-emul.c include/kvm/arm_pmu.h+3 -110 replies
5/6KVM: arm64: vgic-v2: Force vgic init on injection outside the run looparch/arm64/kvm/arm.c arch/arm64/kvm/vgic/vgic-irqfd.c+19 -20 replies
6/6KVM: arm64: vgic-v2: Don't init the vgic on in-kernel interrupt injectionarch/arm64/kvm/vgic/vgic.c+2 -40 replies

Reviews trailers per patch

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

PatchJoey GoulyOliver Upton
SeriesR-b
1/6R-b
2/6
3/6
4/6
5/6
6/6

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/6] KVM: arm64: Don't perform vgic-v2 lazy init on timer injection

This is the third version of this series aiming at fixing issues with vgic-v2 being initialised from non-preemptible context.

* From v2 [2]:

- Remove the PMU's irq level cache which was hidding in plain sight

- Simplify the userspace notification of interrupt level update

- Additional comment clarification in patch #1

- Collected RB, with thanks

* From v1 [1]:

- Repaint kvm_timer_irq_can_fire() to kvm_timer_enabled()

- Drop duplicate kvm_timer_update_status() call

- Force lazy init on the irqfd slow-path for SPIs

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

Marc Zyngier (6):
KVM: arm64: timer: Repaint kvm_timer_{should,irq_can}_fire() to
kvm_timer_{pending,enabled}()
KVM: arm64: Simplify userspace notification of interrupt state
KVM: arm64: timer: Kill the per-timer irq level cache
KVM: arm64: pmu: Kill the PMU interrupt level cache
KVM: arm64: vgic-v2: Force vgic init on injection outside the run loop
KVM: arm64: vgic-v2: Don't init the vgic on in-kernel interrupt
injection

 arch/arm64/kvm/arch_timer.c      | 106 ++++++++++++++-----------------
 arch/arm64/kvm/arm.c             |  39 ++++++++----
 arch/arm64/kvm/pmu-emul.c        |  31 +++------
 arch/arm64/kvm/vgic/vgic-irqfd.c |   6 ++
 arch/arm64/kvm/vgic/vgic.c       |   6 +-
 include/kvm/arm_arch_timer.h     |   7 +-
 include/kvm/arm_pmu.h            |   5 +-
 7 files changed, 94 insertions(+), 106 deletions(-)
Signature · 1 line
2.47.3