Skip to content

KVM: arm64: TCR_EL2 fixes, FEAT_LPA2=NI for NV

Oliver Upton kvmarm stable 1 version Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest5 patches 9 repliesApplied

Changes in v3 from the cover letter

- Collect R-b's from Joey
- Add patch "KVM: arm64: nv: Correctly compute the effective TCR_EL1 for nVHE TCR_EL2", itself picking up fixes for forwarding missing fields into the effective TCR_EL1 value (Fuad)

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5KVM: arm64: nv: Don't advertise FEAT_LPA2 for guest stage-1arch/arm64/kvm/nested.c+11 -00 replies
2/5arm64: sysreg: Add TCR_EL2 to sysreg infrastructurearch/arm64/include/asm/kvm_arm.h arch/arm64/include/asm/sysreg.h arch/arm64/tools/sysreg+125 -140 replies
3/5KVM: arm64: Reset TCR_EL2 according to guest's E2H modearch/arm64/kvm/sys_regs.c+9 -10 replies
4/5KVM: arm64: Convert TCR_EL2 to config-driven sanitisationarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/config.c arch/arm64/kvm/nested.c+117 -16 replies
5/5KVM: arm64: nv: Correctly compute the effective TCR_EL1 for nVHE TCR_EL2arch/arm64/include/asm/kvm_nested.h+29 -91 reply

Reviews trailers per patch

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

PatchMark BrownJoey GoulyWei-Lin ChangFuad Tabba
SeriesR-b T-b
1/5
2/5R-b
3/5R-b
4/5R-b
5/5R-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 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] KVM: arm64: TCR_EL2 fixes, FEAT_LPA2=NI for NV

I went ahead and grabbed Wei-Lin's series [1] that added TCR_EL2 sanitisation since it makes life quite a bit easier for computing an effective TCR_EL1.

Tested on Neoverse-V2 running a guest with FEAT_E2H0.

v2 -> v3:
- Collect R-b's from Joey
- Add patch "KVM: arm64: nv: Correctly compute the effective TCR_EL1 for nVHE TCR_EL2", itself picking up fixes for forwarding missing fields into the effective TCR_EL1 value (Fuad)

[*]: https://lore.kernel.org/all/[email protected]/

Marc Zyngier (1):
KVM: arm64: Reset TCR_EL2 according to guest's E2H mode

Oliver Upton (1):
KVM: arm64: nv: Correctly compute the effective TCR_EL1 for nVHE

    TCR_EL2

Wei-Lin Chang (3):
KVM: arm64: nv: Don't advertise FEAT_LPA2 for guest stage-1
arm64: sysreg: Add TCR_EL2 to sysreg infrastructure
KVM: arm64: Convert TCR_EL2 to config-driven sanitisation

 arch/arm64/include/asm/kvm_arm.h    |  13 ---
 arch/arm64/include/asm/kvm_host.h   |   2 +-
 arch/arm64/include/asm/kvm_nested.h |  38 +++++++--
 arch/arm64/include/asm/sysreg.h     |   1 -
 arch/arm64/kvm/config.c             | 112 +++++++++++++++++++++++++
 arch/arm64/kvm/nested.c             |  15 ++++
 arch/arm64/kvm/sys_regs.c           |  10 ++-
 arch/arm64/tools/sysreg             | 125 ++++++++++++++++++++++++++++
 8 files changed, 291 insertions(+), 25 deletions(-)

base-commit: 9e9283e4c941e806d2735f09b66763487bc48b50

Signature · 1 line
2.47.3