Re: [PATCH v19 15/20] KVM: arm64: CCA: Introduce Realms

From: Jonathan Cameron

Date: Tue Sep 22 2026 - 18:52:45 EST


On Sun, 20 Sep 2026 22:28:40 +0100
Suzuki K Poulose <suzuki.poulose@xxxxxxx> wrote:

> From: Steven Price <steven.price@xxxxxxx>
>
> Add foundational work for supporting Realms.
> - Add a new VM flavor.
> - At KVM init, check if the KVM can support Realms (though not functional yet)
> and will be advertised by static key kvm_rmi_is_available. This will be
> turned on in a later patches, once we have all the bits and pieces ready.
> For now check if we are blessed with KVM_MODE_RMM.
> - Add realm specific tracking in kvm_arch. Since Realm and protected pKVM
> states are mutually exclusive, move them into a union.
>
> Please note that we cannot create Realm VMs yet. This requires further changes
> to the UABI and core RMI driver support, which will come later.
>
> Signed-off-by: Steven Price <steven.price@xxxxxxx>
> Co-developed-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>

Seems like sensible infrastructure to me.
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxxxxxxxx>