Re: [PATCH v4 07/11] KVM: arm64: CCA: Add Realm RTT mapping and invalidation helpers
From: Steven Price
Date: Wed Nov 25 2026 - 11:42:29 EST
On 23/11/2026 13:32, Suzuki K Poulose wrote:
> 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@xxxxxxx>
>>
> ...
>
>
>
> --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 ?
Yes, sorry about that!
Thanks,
Steve