The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Vincent Donnefort <vdonnefort@google.com>
To: Sumit Garg <sumit.garg@kernel.org>
Cc: catalin.marinas@arm.com, will@kernel.org, rppt@kernel.org,
	akpm@linux-foundation.org, m.szyprowski@samsung.com,
	jenswi@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, mark.rutland@arm.com, robin.murphy@arm.com,
	hch@lst.de, ryan.roberts@arm.com, sudeep.holla@kernel.org,
	ardb@kernel.org, thierry.reding@kernel.org, david@kernel.org,
	danielmentz@google.com, linux-arm-kernel@lists.infradead.org,
	linux-mm@kvack.org, iommu@lists.linux.dev,
	op-tee@lists.trustedfirmware.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/8] arm64: Unmap FF-A lent memory from direct map
Date: Wed, 2 Dec 2026 09:59:30 +0000	[thread overview]
Message-ID: <aw_sAlZK4LKIF2BN@google.com> (raw)
In-Reply-To: <179578166371.172025.10770561998032628043.b4-review@b4>

On Fri, Nov 27, 2026 at 05:44:23PM +0530, Sumit Garg wrote:
> > 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?

Unmapping from the stage-1 is enough to protect against speculative accesses.

Android's pKVM has an option to unmap from the stage-2 and getting rid of it was
the original intent for this series. The hypervisor really isn't the place to do
the unmapping. The platform should be able to work without the need for a
hypervisor.

-- 
Vincent

> 
> -Sumit
> 
> -- 
> Sumit Garg <sumit.garg@kernel.org>

      reply	other threads:[~2026-12-02  9:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11 11:07 [PATCH v3 0/8] arm64: Unmap FF-A lent memory from direct map Vincent Donnefort
2026-11-11 11:07 ` [PATCH v3 1/8] memblock: Introduce MEMBLOCK_PTEMAP Vincent Donnefort
2026-11-15 19:14   ` Mike Rapoport
2026-11-11 11:07 ` [PATCH v3 2/8] arm64: Add support for MEMBLOCK_PTEMAP Vincent Donnefort
2026-11-15 19:20   ` Mike Rapoport
2026-11-11 11:07 ` [PATCH v3 3/8] dma-contiguous: Expose rmem_cma_ops Vincent Donnefort
2026-11-11 11:07 ` [PATCH v3 4/8] dt-bindings: reserved-memory: Add lendable-dma-pool Vincent Donnefort
2026-11-18 20:24   ` Rob Herring (Arm)
2026-11-11 11:07 ` [PATCH v3 5/8] dma-mapping: Introduce lendable-dma-pool Vincent Donnefort
2026-11-27 12:14   ` Sumit Garg
2026-11-11 11:07 ` [PATCH v3 6/8] arm64: Introduce direct_map_is_ptemap() Vincent Donnefort
2026-11-11 11:07 ` [PATCH v3 7/8] arm64: Add support for lendable-dma-pool Vincent Donnefort
2026-11-11 11:07 ` [PATCH v3 8/8] optee: " Vincent Donnefort
2026-11-27 12:14   ` Sumit Garg
2026-12-02 10:00     ` Vincent Donnefort
2026-11-27 12:14 ` [PATCH v3 0/8] arm64: Unmap FF-A lent memory from direct map Sumit Garg
2026-12-02  9:59   ` Vincent Donnefort [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aw_sAlZK4LKIF2BN@google.com \
    --to=vdonnefort@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=ardb@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=conor+dt@kernel.org \
    --cc=danielmentz@google.com \
    --cc=david@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hch@lst.de \
    --cc=iommu@lists.linux.dev \
    --cc=jenswi@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=m.szyprowski@samsung.com \
    --cc=mark.rutland@arm.com \
    --cc=op-tee@lists.trustedfirmware.org \
    --cc=robh@kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=rppt@kernel.org \
    --cc=ryan.roberts@arm.com \
    --cc=sudeep.holla@kernel.org \
    --cc=sumit.garg@kernel.org \
    --cc=thierry.reding@kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox