Re: [PATCH v3 0/8] arm64: Unmap FF-A lent memory from direct map
From: Sumit Garg
Date: Fri Nov 27 2026 - 07:14:57 EST
> This series is a follow-up to the discussion that has started here [1].
>
> When memory is lent to the Secure world via FF-A, CPU speculative
> accesses from NS to the lent pages can still occur as long as it retains
> a cacheable mapping to it.
One thing I forgot to ask during last review, in case of hypervisor
support like pKVM how are going to handle unmap from stage-2? As I can
see from code pKVM doesn't support FF-A lend calls to unmap pages from
stage-2.
I think overall it is important to unmap memory from both stage-1 and
stage-2 to avoid CPU speculative accesses from NS when memory is lent to
the secure world. Is there plan to support stage-2 unmapping like in
case of pKVM?
-Sumit
--
Sumit Garg <sumit.garg@xxxxxxxxxx>