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

Suzuki K Poulose suzuki.poulose at arm.com
Mon Nov 16 03:46:32 PST 2026


On 11/11/2026 14:57, Steven Price wrote:
> From: Suzuki K Poulose <suzuki.poulose at arm.com>
> 
> 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 at arm.com>
> Signed-off-by: Steven Price <steven.price at arm.com>
> 



More information about the linux-arm-kernel mailing list