Re: [PATCH v2 0/8] dma-mapping: Use DMA_ATTR_CC_SHARED through direct, pool and swiotlb paths
From: Aneesh Kumar K . V
Date: Wed Jun 03 2026 - 00:58:33 EST
Mostafa Saleh <smostafa@xxxxxxxxxx> writes:
> On Mon, Apr 20, 2026 at 11:44:07AM +0530, Aneesh Kumar K.V (Arm) wrote:
>> This series propagates DMA_ATTR_CC_SHARED through the dma-direct,
>> dma-pool, and swiotlb paths so that encrypted and decrypted DMA buffers
>> are handled consistently.
>>
>> Today, the direct DMA path mostly relies on force_dma_unencrypted() for
>> shared/decrypted buffer handling. This series consolidates the
>> force_dma_unencrypted() checks in the top-level functions and ensures
>> that the remaining DMA interfaces use DMA attributes to make the correct
>> decisions.
>
> I tested this series on protected KVM and did not see regressions.
> Tested-by: Mostafa Saleh <smostafa@xxxxxxxxxx>
>
Thanks, I will pick the Tested-by: for the v5 series.
>
> Next, I will:
> - Send the pKVM CC patch separately.
> - Review this series.
>
I will send a v6 dropping the pkvm patch
-aneesh