Re: [PATCH v4 07/11] KVM: arm64: CCA: Add Realm RTT mapping and invalidation helpers
From: Suzuki K Poulose
Date: Mon Nov 23 2026 - 08:32:25 EST
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 ?
Suzuki