Skip to content

KVM: arm64: nv: Add CPTR_EL2 handling

Marc Zyngier kvmarm linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: nv: Add TCPAC/TTA to CPTR->CPACR conversion helperarch/arm64/include/asm/kvm_nested.h+3 -10 replies
2/4KVM: arm64: nv: Add trap description for CPTR_EL2arch/arm64/kvm/emulate-nested.c+91 -00 replies
3/4KVM: arm64: nv: Add additional trap setup for CPTR_EL2arch/arm64/include/asm/kvm_emulate.h arch/arm64/kvm/hyp/vhe/switch.c+23 -20 replies
4/4KVM: arm64: nv: Handle CPACR_EL1 trapsarch/arm64/kvm/hyp/vhe/switch.c+31 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] KVM: arm64: nv: Add CPTR_EL2 handling

Building on top of Oliver's NV+SVE series[1], I've put together a small set of patches handling CPTR_EL2, as the two are pretty closely related.

This series adds:

- the description on the CPTR_EL2-driven traps in the exception routing tables

- the merging of the L1 guest's CPTR_EL2 traps with the host's

- the handling of L1's CPTR_EL2 access via the CPACR_EL1 accessor as a trap so that we can emulate writing to the TCPAC/TTA bits

Overall, this is pretty straightforward (for NV, that is...).

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

Marc Zyngier (4):
KVM: arm64: nv: Add TCPAC/TTA to CPTR->CPACR conversion helper
KVM: arm64: nv: Add trap description for CPTR_EL2
KVM: arm64: nv: Add additional trap setup for CPTR_EL2
KVM: arm64: nv: Handle CPACR_EL1 traps

 arch/arm64/include/asm/kvm_emulate.h |  2 +-
 arch/arm64/include/asm/kvm_nested.h  |  4 +-
 arch/arm64/kvm/emulate-nested.c      | 91 ++++++++++++++++++++++++++++
 arch/arm64/kvm/hyp/vhe/switch.c      | 55 ++++++++++++++++-
 4 files changed, 148 insertions(+), 4 deletions(-)
Signature · 1 line
2.39.2