Skip to content

arm64: Drop support for VPIPT i-cache policy

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

Status from this message: Applied to arm64 (for-next/rip-vpipt), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesApplied
  2. v23 patches 6 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Remove VPIPT I-cache handlingarch/arm64/include/asm/kvm_mmu.h arch/arm64/kvm/hyp/nvhe/pkvm.c arch/arm64/kvm/hyp/nvhe/tlb.c +1 more+1 -820 replies
2/3arm64: Kill detection of VPIPT i-cache policyarch/arm64/include/asm/cache.h arch/arm64/kernel/cpuinfo.c+0 -110 replies
3/3arm64: Rename reserved values for CTR_EL0.L1Iparch/arm64/tools/sysreg+3 -21 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchZenghui YuAnshuman KhandualMark Rutland
SeriesA-b
1/3R-b R-b
2/3R-b R-b
3/3R-b R-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 0/3] arm64: Drop support for VPIPT i-cache policy

ARMv8.2 introduced support for VPIPT i-caches, the V standing for VMID-tagged. Although this looked like a reasonable idea, no implementation has ever made it into the wild.

Linux has supported this for over 6 years (amusingly, just as the architecture was dropping support for AIVIVT i-caches), but we had no way to even test it, and it is likely that this code was just bit-rotting.

However, in a recent breakthrough (XML drop 2023-09, tagged as d55f5af8e09052abe92a02adf820deea2eaed717), the architecture has finally been purged of this option, making VIPT and PIPT the only two valid options.

This really means this code is just dead code. Nobody will ever come up with such an implementation, and we can just get rid of it.

Most of the impact is on KVM, where we drop a few large comment blocks (and a bit of code), while the core arch code loses the detection code itself.

* From v2:
- Fix reserved naming for RESERVED_AIVIVT
- Collected RBs from Anshuman an Zenghui

Marc Zyngier (3):
KVM: arm64: Remove VPIPT I-cache handling
arm64: Kill detection of VPIPT i-cache policy
arm64: Rename reserved values for CTR_EL0.L1Ip

 arch/arm64/include/asm/cache.h   |  6 ----
 arch/arm64/include/asm/kvm_mmu.h |  7 ----
 arch/arm64/kernel/cpuinfo.c      |  5 ---
 arch/arm64/kvm/hyp/nvhe/pkvm.c   |  2 +-
 arch/arm64/kvm/hyp/nvhe/tlb.c    | 61 --------------------------------
 arch/arm64/kvm/hyp/vhe/tlb.c     | 13 -------
 arch/arm64/tools/sysreg          |  5 +--
 7 files changed, 4 insertions(+), 95 deletions(-)
Signature · 1 line
2.39.2