Re: [PATCH v2 12/12] KVM: arm64: CCA: Add Realm stage-2 MMU operations

From: Suzuki K Poulose

Date: Mon Nov 16 2026 - 06:46:50 EST


On 11/11/2026 14:57, Steven Price wrote:
From: Suzuki K Poulose <suzuki.poulose@xxxxxxx>

Register the Realm stage-2 MMU operations now that the RMM mapping
and unmapping helpers are available. Route unmapping through the
RMM, and use the existing fault handler for Realm memory faults.

The RMM handles TLB invalidation when stage-2 mappings change, so
the host has no separate TLB flush to perform. Realm stage-2 does
not support access flags, including for shared IPAs.

Dispatch stage-2 destruction according to the VM flavor. Realm
teardown destroys non-root RTTs through RMI, so the host frees
only the root RTT pages.

Minor nit: It may be worth splitting the destroy abstraction as a
separate patch. Otherwise looks good to me.



Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
Signed-off-by: Steven Price <steven.price@xxxxxxx>