Re: [PATCH v3 0/3] arm64: realm: Fix DMA address for devices
From: Catalin Marinas
Date: Tue Mar 11 2025 - 13:15:57 EST
On Thu, 27 Feb 2025 14:41:47 +0000, Suzuki K Poulose wrote:
> Linux can be run as a Confidential Guest in Arm CCA from Linux v6.13. The address
> space (GPA or IPA) of a Realm VM is split into two halves, with private bottom
> half and shared top half. In Linux we treat the "top" bit of the IPA space as
> an attribute, to indicate whether it is shared or not (MSB == 1 implies shared).
> Stage2 (GPA to PA) translations used by the CPU accesses, cover the full IPA space,
> and are managed by RMM. The "top" bit as attribute is only a software construct.
>
> [...]
Applied to arm64 (for-next/cca-dma-address), thanks!
[1/3] dma: Fix encryption bit clearing for dma_to_phys
https://git.kernel.org/arm64/c/c380931712d1
[2/3] dma: Introduce generic dma_addr_*crypted helpers
https://git.kernel.org/arm64/c/b66e2ee7b6c8
[3/3] arm64: realm: Use aliased addresses for device DMA to shared buffers
https://git.kernel.org/arm64/c/7d953a062416
--
Catalin