Skip to content

KVM: arm64: Fix handling of TCR2_EL1

Marc Zyngier kvm kvmarm linux-arm-kernel 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5KVM: arm64: Correctly honor the presence of FEAT_TCRXarch/arm64/include/asm/kvm_arm.h arch/arm64/kvm/sys_regs.c+10 -13 replies
2/5KVM: arm64: Get rid of HCRX_GUEST_FLAGSarch/arm64/include/asm/kvm_arm.h arch/arm64/kvm/sys_regs.c+7 -21 reply
3/5KVM: arm64: Make TCR2_EL1 save/restore dependent on the VM featuresarch/arm64/kvm/hyp/include/hyp/sysreg-sr.h+13 -20 replies
4/5KVM: arm64: Make PIR{,E0}_EL1 save/restore conditional on FEAT_TCRXarch/arm64/kvm/hyp/include/hyp/sysreg-sr.h+14 -100 replies
5/5KVM: arm64: Honor trap routing for TCR2_EL1arch/arm64/kvm/emulate-nested.c+13 -00 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchJoey Gouly
1/5R-b
2/5R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] KVM: arm64: Fix handling of TCR2_EL1

As I'm inching towards supporting FEAT_S1PIE in a NV guest (oh, the fun I'm having!), it has become obvious that we're missing the basics when it comes to:

- VM configuration: HCRX_EL2.TCR2En is forced to 1, and we blindly save/restore stuff.

- trap bit description and routing: none, obviously, since we make a point in not trapping.

Given that these are prerequisites for the NV work and that we should have had that from the beginning, I would like to plug them before piling more patches on top.

Marc Zyngier (5):
KVM: arm64: Correctly honor the presence of FEAT_TCRX
KVM: arm64: Get rid of HCRX_GUEST_FLAGS
KVM: arm64: Make TCR2_EL1 save/restore dependent on the VM features
KVM: arm64: Make PIR{,E0}_EL1 save/restore conditional on FEAT_TCRX
KVM: arm64: Honor trap routing for TCR2_EL1

 arch/arm64/include/asm/kvm_arm.h           |  1 -
 arch/arm64/kvm/emulate-nested.c            | 13 ++++++++
 arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h | 35 +++++++++++++++-------
 arch/arm64/kvm/sys_regs.c                  | 17 ++++++++++-
 4 files changed, 54 insertions(+), 12 deletions(-)
Signature · 1 line
2.39.2