Skip to content

KVM: arm64: Accelerate lookup of vcpus by MPIDR values (and other fixes)

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

Status from this message: Applied to kvmarm/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 1 replyApplied
  2. v211 patches 12 repliesSuperseded
  3. v15 patches 13 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/11KVM: arm64: vgic: Make kvm_vgic_inject_irq() take a vcpu pointerarch/arm64/kvm/arch_timer.c arch/arm64/kvm/arm.c arch/arm64/kvm/pmu-emul.c +3 more+18 -270 replies
2/11KVM: arm64: vgic-its: Treat the collection target address as a vcpu_idarch/arm64/kvm/vgic/vgic-its.c+27 -220 replies
3/11KVM: arm64: vgic-v3: Refactor GICv3 SGI generationarch/arm64/kvm/vgic/vgic-mmio-v3.c+59 -510 replies
4/11KVM: arm64: vgic-v2: Use cpuid from userspace as vcpu_idarch/arm64/kvm/vgic/vgic-kvm-device.c+2 -60 replies
5/11KVM: arm64: vgic: Use vcpu_idx for the debug informationarch/arm64/kvm/vgic/vgic-debug.c+3 -30 replies
6/11KVM: arm64: Use vcpu_idx for invalidation trackingarch/arm64/kvm/arm.c+2 -20 replies
7/11KVM: arm64: Simplify kvm_vcpu_get_mpidr_aff()arch/arm64/include/asm/kvm_emulate.h+1 -10 replies
8/11KVM: arm64: Build MPIDR to vcpu index cache at runtimearch/arm64/include/asm/kvm_host.h arch/arm64/kvm/arm.c+82 -00 replies
9/11KVM: arm64: Fast-track kvm_mpidr_to_vcpu() when mpidr_data is availablearch/arm64/kvm/arm.c+12 -00 replies
10/11KVM: arm64: vgic-v3: Optimize affinity-based SGI injectionarch/arm64/kvm/vgic/vgic-mmio-v3.c+11 -530 replies
11/11KVM: arm64: Clarify the ordering requirements for vcpu/RD creationDocumentation/virt/kvm/devices/arm-vgic-v3.rst+7 -00 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchZenghui YuJoey GoulyShameer Kolothum
1/11R-b
2/11R-b
3/11R-b T-b T-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b R-b T-b T-b
8/11R-b R-b T-b T-b
9/11R-b R-b T-b T-b
10/11R-b T-b T-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/11] KVM: arm64: Accelerate lookup of vcpus by MPIDR values (and other fixes)

This is a follow-up on [2], which addresses both the O(n) SGI injection issue, and cleans up a number of embarassing bugs steaming form the vcpuid/vcpu_idx confusion.

See the changelog below for details.

Oliver, assuming that you haven't changed your mind and that nobody shouts, feel free to queue this in -next.

* From v2 [2]:
- Killed a number of online_vcpus comparisons, which didn't make much sense (Zenghui)
- Added missing commit logs (oops)
- Fixed some comments
- Collected RBs, with thanks

* From v1 [1]:
- Added a bunch of patches fixing the vcpu_id[x] ambiguity
- Added a documentation update spelling out some extra ordering requirements
- Collected RBs/TBs, with thanks

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

Marc Zyngier (11):
KVM: arm64: vgic: Make kvm_vgic_inject_irq() take a vcpu pointer
KVM: arm64: vgic-its: Treat the collection target address as a vcpu_id
KVM: arm64: vgic-v3: Refactor GICv3 SGI generation
KVM: arm64: vgic-v2: Use cpuid from userspace as vcpu_id
KVM: arm64: vgic: Use vcpu_idx for the debug information
KVM: arm64: Use vcpu_idx for invalidation tracking
KVM: arm64: Simplify kvm_vcpu_get_mpidr_aff()
KVM: arm64: Build MPIDR to vcpu index cache at runtime
KVM: arm64: Fast-track kvm_mpidr_to_vcpu() when mpidr_data is
available
KVM: arm64: vgic-v3: Optimize affinity-based SGI injection
KVM: arm64: Clarify the ordering requirements for vcpu/RD creation

 .../virt/kvm/devices/arm-vgic-v3.rst          |   7 +
 arch/arm64/include/asm/kvm_emulate.h          |   2 +-
 arch/arm64/include/asm/kvm_host.h             |  28 ++++
 arch/arm64/kvm/arch_timer.c                   |   2 +-
 arch/arm64/kvm/arm.c                          |  93 +++++++++--
 arch/arm64/kvm/pmu-emul.c                     |   2 +-
 arch/arm64/kvm/vgic/vgic-debug.c              |   6 +-
 arch/arm64/kvm/vgic/vgic-irqfd.c              |   2 +-
 arch/arm64/kvm/vgic/vgic-its.c                |  49 +++---
 arch/arm64/kvm/vgic/vgic-kvm-device.c         |   8 +-
 arch/arm64/kvm/vgic/vgic-mmio-v3.c            | 150 +++++++-----------
 arch/arm64/kvm/vgic/vgic.c                    |  12 +-
 include/kvm/arm_vgic.h                        |   4 +-
 13 files changed, 212 insertions(+), 153 deletions(-)
Signature · 1 line
2.34.1