linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: Drop support for VPIPT i-cache policy
@ 2023-11-27 17:26 Marc Zyngier
  2023-11-27 17:26 ` [PATCH v2 1/3] KVM: arm64: Remove VPIPT I-cache handling Marc Zyngier
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Marc Zyngier @ 2023-11-27 17:26 UTC (permalink / raw)
  To: kvmarm, linux-arm-kernel, kvm
  Cc: Will Deacon, Catalin Marinas, Mark Rutland, Ard Biesheuvel,
	James Morse, Suzuki K Poulose, Oliver Upton, Zenghui Yu

ARMv8.2 introduced support for VPIPT i-caches, the V standing for
VMID-tagged. Although this looks 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 AVIVT 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.

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(-)

-- 
2.39.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-12-04 13:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-27 17:26 [PATCH v2 0/3] arm64: Drop support for VPIPT i-cache policy Marc Zyngier
2023-11-27 17:26 ` [PATCH v2 1/3] KVM: arm64: Remove VPIPT I-cache handling Marc Zyngier
2023-11-29  7:36   ` Anshuman Khandual
2023-11-27 17:26 ` [PATCH v2 2/3] arm64: Kill detection of VPIPT i-cache policy Marc Zyngier
2023-11-29  7:25   ` Anshuman Khandual
2023-11-27 17:26 ` [PATCH v2 3/3] arm64: Rename reserved values for CTR_EL0.L1Ip Marc Zyngier
2023-11-29  7:13   ` Anshuman Khandual
2023-11-29 13:06     ` Marc Zyngier
2023-11-29  6:31 ` [PATCH v2 0/3] arm64: Drop support for VPIPT i-cache policy Anshuman Khandual
2023-12-04 13:09 ` Zenghui Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).