Skip to content

KVM: arm64: nv: Add support for address translation instructions

Marc Zyngier kvm kvmarm linux-arm-kernel oe-kbuild-all 4 versions – Applied

Status from this message: Applied to kvm-arm64/s2-ptdump, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest18 patches 5 repliesApplied
  2. v318 patches 8 repliesSuperseded
  3. v217 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v112 patches37 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/18arm64: Add missing APTable and TCR_ELx.HPD masksarch/arm64/include/asm/kvm_arm.h arch/arm64/include/asm/pgtable-hwdef.h+10 -00 replies
2/18arm64: Add PAR_EL1 field descriptionarch/arm64/include/asm/sysreg.h+18 -00 replies
3/18arm64: Add system register encoding for PSTATE.PANarch/arm64/include/asm/sysreg.h+3 -00 replies
4/18arm64: Add ESR_ELx_FSC_ADDRSZ_L() helperarch/arm64/include/asm/esr.h+3 -20 replies
5/18KVM: arm64: Make kvm_at() take an OP_AT_*arch/arm64/include/asm/kvm_asm.h arch/arm64/kvm/hyp/include/hyp/fault.h+3 -20 replies
6/18KVM: arm64: nv: Enforce S2 alignment when contiguous bit is setarch/arm64/include/asm/kvm_nested.h arch/arm64/kvm/nested.c+24 -50 replies
7/18KVM: arm64: nv: Turn upper_attr for S2 walk into the full descriptorarch/arm64/include/asm/kvm_nested.h arch/arm64/kvm/nested.c+8 -80 replies
8/18KVM: arm64: nv: Honor absence of FEAT_PAN2arch/arm64/kvm/sys_regs.c+4 -00 replies
9/18KVM: arm64: nv: Add basic emulation of AT S1E{0,1}{R,W}arch/arm64/include/asm/kvm_asm.h arch/arm64/kvm/Makefile arch/arm64/kvm/at.c+142 -10 replies
10/18KVM: arm64: nv: Add basic emulation of AT S1E1{R,W}Parch/arm64/kvm/at.c+26 -00 replies
11/18KVM: arm64: nv: Add basic emulation of AT S1E2{R,W}arch/arm64/include/asm/kvm_asm.h arch/arm64/kvm/at.c+52 -00 replies
12/18KVM: arm64: nv: Add emulation of AT S12E{0,1}{R,W}arch/arm64/include/asm/kvm_asm.h arch/arm64/kvm/at.c+254 -00 replies
13/18KVM: arm64: nv: Make ps_to_output_size() generally availablearch/arm64/include/asm/kvm_nested.h arch/arm64/kvm/nested.c+14 -140 replies
14/18KVM: arm64: nv: Add SW walker for AT S1 emulationarch/arm64/kvm/at.c+608 -20 replies
15/18KVM: arm64: nv: Sanitise SCTLR_EL1.EPAN according to VM configurationarch/arm64/kvm/nested.c+8 -00 replies
16/18KVM: arm64: nv: Make AT+PAN instructions aware of FEAT_PAN3arch/arm64/kvm/at.c+16 -10 replies
17/18KVM: arm64: nv: Plumb handling of AT S1* traps from EL2arch/arm64/kvm/sys_regs.c+45 -00 replies
18/18KVM: arm64: nv: Add support for FEAT_ATS1Aarch/arm64/include/asm/sysreg.h arch/arm64/kvm/at.c arch/arm64/kvm/emulate-nested.c +1 more+24 -00 replies

Reviews trailers per patch

4 of 18 patches have a Reviewed-by or Acked-by.

PatchMarc ZyngierAnshuman KhandualAlexandru Elisei
1/18
2/18
3/18
4/18
5/18R-b R-b
6/18
7/18
8/18R-b
9/18
10/18
11/18
12/18
13/18
14/18R-b
15/18
16/18R-b
17/18
18/18

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 v4 thread

Cover letter [PATCH v4 00/18] KVM: arm64: nv: Add support for address translation instructions

This is the fourth revision of the address translation emulation for NV support on arm64 previously posted at [1].

Thanks again to Alex for his continuous (contiguous? ;-) scrutiny on this series.

* From v3:

- Fix out of range conditions for TxSZ when LVA is implemented

- Fix implementation of R_VPBBF to deliver an Address Size Fault

- Don't grant PX if UW is set

- Various cleanups

- Collected Alex's RBs, with thanks.

I've added the usual reviewers on Cc, plus people who explicitly asked to be on it, and people who seem to be super keen on NV.

Patches on top of 6.11-rc1, tested on my usual M2 (so VHE only). FWIW, I plan to take this into 6.12.

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

Joey Gouly (1):
KVM: arm64: Make kvm_at() take an OP_AT_*

Marc Zyngier (17):
arm64: Add missing APTable and TCR_ELx.HPD masks
arm64: Add PAR_EL1 field description
arm64: Add system register encoding for PSTATE.PAN
arm64: Add ESR_ELx_FSC_ADDRSZ_L() helper
KVM: arm64: nv: Enforce S2 alignment when contiguous bit is set
KVM: arm64: nv: Turn upper_attr for S2 walk into the full descriptor
KVM: arm64: nv: Honor absence of FEAT_PAN2
KVM: arm64: nv: Add basic emulation of AT S1E{0,1}{R,W}
KVM: arm64: nv: Add basic emulation of AT S1E1{R,W}P
KVM: arm64: nv: Add basic emulation of AT S1E2{R,W}
KVM: arm64: nv: Add emulation of AT S12E{0,1}{R,W}
KVM: arm64: nv: Make ps_to_output_size() generally available
KVM: arm64: nv: Add SW walker for AT S1 emulation
KVM: arm64: nv: Sanitise SCTLR_EL1.EPAN according to VM configuration
KVM: arm64: nv: Make AT+PAN instructions aware of FEAT_PAN3
KVM: arm64: nv: Plumb handling of AT S1* traps from EL2
KVM: arm64: nv: Add support for FEAT_ATS1A

 arch/arm64/include/asm/esr.h           |    5 +-
 arch/arm64/include/asm/kvm_arm.h       |    1 +
 arch/arm64/include/asm/kvm_asm.h       |    6 +-
 arch/arm64/include/asm/kvm_nested.h    |   40 +-
 arch/arm64/include/asm/pgtable-hwdef.h |    9 +
 arch/arm64/include/asm/sysreg.h        |   22 +
 arch/arm64/kvm/Makefile                |    2 +-
 arch/arm64/kvm/at.c                    | 1101 ++++++++++++++++++++++++
 arch/arm64/kvm/emulate-nested.c        |    2 +
 arch/arm64/kvm/hyp/include/hyp/fault.h |    2 +-
 arch/arm64/kvm/nested.c                |   41 +-
 arch/arm64/kvm/sys_regs.c              |   60 ++
 12 files changed, 1259 insertions(+), 32 deletions(-)
 create mode 100644 arch/arm64/kvm/at.c
Signature · 1 line
2.39.2