[RFC PATCH v1 0/2] KVM: arm64: CCA: Add MEC policy support for CCA Realms
Kohei Enju <[email protected]> Fri, 24 Jul 2026 18:40:54 +0900
| Newsgroups | org.kernel.vger.cgroups,dev.linux.lists.kvmarm,dev.linux.lists.linux-coco,org.infradead.lists.linux-arm-kernel,org.kernel.vger.kvm |
|---|---|
| Message-ID | <[email protected]> |
This series adds basic support for configuring the Memory Encryption Context (MEC) policy for Arm CCA Realms. Patch 1 introduces a new Realm VM ioctl, KVM_ARM_RMI_CONFIG, and uses it to let userspace select the shared or private MEC policy before the Realm is created. The default remains the shared MEC policy. Patch 2 adds a misc cgroup resource for CCA MECIDs and charges one unit for each Realm using the private MEC policy. Feedback on the proposed KVM ABI and on using misc cgroup for MECID accounting would be appreciated. This series is based on Steven Price's CCA host series [0] [1]. I am sending it as an RFC while the CCA host series is not yet upstreamed, and plan to update it as needed to track future revisions of the host series. Once the host series is merged, I plan to post a non-RFC version. [0] https://lore.kernel.org/all/[email protected]/ [1] https://gitlab.arm.com/linux-arm/linux-cca cca-host/v15 Kohei Enju (2): KVM: arm64: CCA: Add support for configuring the Realm MEC policy cgroup/misc: Add support for Arm CCA MECIDs Documentation/virt/kvm/api.rst | 29 +++++++++++++ arch/arm64/include/asm/kvm_rmi.h | 6 +++ arch/arm64/kvm/arm.c | 9 ++++ arch/arm64/kvm/rmi.c | 73 +++++++++++++++++++++++++++++++- drivers/firmware/arm_rmm/rmi.c | 12 +++++- include/linux/arm-rmi-cmds.h | 1 + include/linux/misc_cgroup.h | 4 ++ include/uapi/linux/kvm.h | 17 ++++++++ kernel/cgroup/misc.c | 4 ++ 9 files changed, 152 insertions(+), 3 deletions(-) -- 2.43.0