[PATCH v4 07/11] KVM: arm64: CCA: Add Realm RTT mapping and invalidation helpers

Suzuki K Poulose suzuki.poulose at arm.com
Mon Nov 23 05:32:15 PST 2026


On 23/11/2026 10:42, Steven Price wrote:
> Add the RMI RTT creation and unmap helpers needed by CCA Realm stage-2
> memory operations. REC exit handling and guest requested RIPAS changes
> follow in the vCPU series.
> 
> Signed-off-by: Steven Price <steven.price at arm.com>
> 
...



--8>--

>   static int realm_destroy_rtts(struct kvm *kvm)
>   {
>   	struct realm *realm = &kvm->arch.realm;
>   	unsigned int ia_bits = realm->ia_bits;
>   
>   	lockdep_assert_held(&kvm->arch.config_lock);
> +	if (WARN_ON_ONCE(!realm->stage2_unmapped))
> +		return -EINVAL;

minor nit: Does this hunk belong to the previous patch ?

Suzuki



More information about the linux-arm-kernel mailing list