Skip to content

RFC Arm CCA planes support

Steven Price kvm kvmarm linux-arm-kernel linux-coco lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5arm64: RME: Add SMC definitions introduced in RMM v1.1arch/arm64/include/asm/rmi_cmds.h arch/arm64/include/asm/rmi_smc.h+1146 -790 replies
2/5arm64: RME: Handle auxiliary RTT treesarch/arm64/include/asm/kvm_rme.h arch/arm64/kvm/mmu.c arch/arm64/kvm/rme-exit.c +1 more+213 -200 replies
3/5arm64: RME: Support RMI_EXIT_S2AP_CHANGEarch/arm64/include/asm/kvm_rme.h arch/arm64/kvm/rme-exit.c arch/arm64/kvm/rme.c+51 -40 replies
4/5arm64: rme: Allocate AUX RTT PGDs and VMIDsarch/arm64/include/asm/kvm_rme.h arch/arm64/kvm/rme.c+122 -150 replies
5/5arm64: RME: Support num_aux_places & rtt_tree_pp realm parametersarch/arm64/include/uapi/asm/kvm.h arch/arm64/kvm/rme.c+86 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/5] Arm CCA planes support

The Arm CCA (Confidential Compute Architecture) RMM version 1.1 specification[1] adds support for a concept of "planes". This allows a realm to be divided into multiple execution environments with memory separation between them (while still sharing the same IPA to PA translations). There's an overview on the Arm website[2].

The TF-RMM project[3] recently merged support for planes to their "main" branch and this an early preview of the corresponding Linux changes to support the feature. Note you need to enable the (experimental) RMM_V1_1 configuration option to enable this feature.

This series is based on the v10 posting of the CCA host support series[4] and is also available as a git tree:

https://gitlab.arm.com/linux-arm/linux-cca.git/ cca/planes/rfc-v1

A hacked up version of kvmtool to launch a realm guest with an extra plan is available here:

https://gitlab.arm.com/linux-arm/kvmtool-cca.git/ cca/planes/rfc-v1

Note:
The kvmtool support is a hack - it simply (unconditionally) enables a single extra plane (for a total of two planes: P0 and P1). This should obviously be a configuration option and should support other numbers of planes. But it gives an easy way of testing the support for auxiliary RTTs while running a single guest image (i.e. leaving P1 empty).

This series was written against the RMM v1.1 alp14 specification. Those who are following things closely will know we're up to alp16, however there are no major changes affecting planes between these two versions. The spec is still alpha, so there may well be changes in the future.

[1] https://developer.arm.com/-/cdn-downloads/permalink/Architectures/Armv9/DEN0137_1.1-alp14.zip
[2] https://developer.arm.com/documentation/den0125/400/Arm-CCA-Extensions#md239-arm-cca-extensions__realm-planes
[3] https://www.trustedfirmware.org/projects/tf-rmm/
[4] https://lore.kernel.org/r/20250820145606.180644-1-steven.price%40arm.com

Steven Price (5):
arm64: RME: Add SMC definitions introduced in RMM v1.1
arm64: RME: Handle auxiliary RTT trees
arm64: RME: Support RMI_EXIT_S2AP_CHANGE
arm64: rme: Allocate AUX RTT PGDs and VMIDs
arm64: RME: Support num_aux_places & rtt_tree_pp realm parameters

 arch/arm64/include/asm/kvm_rme.h  |   13 +-
 arch/arm64/include/asm/rmi_cmds.h | 1104 +++++++++++++++++++++++++++--
 arch/arm64/include/asm/rmi_smc.h  |  121 +++-
 arch/arm64/include/uapi/asm/kvm.h |   12 +
 arch/arm64/kvm/mmu.c              |   15 +-
 arch/arm64/kvm/rme-exit.c         |   33 +-
 arch/arm64/kvm/rme.c              |  441 +++++++++++-
 7 files changed, 1618 insertions(+), 121 deletions(-)
Signature · 1 line
2.43.0