[PATCH v2] vfio: do not coalesce DMA mappings

David Marchand david.marchand at redhat.com
Thu Feb 2 11:48:34 CET 2023


Hi,

On Wed, Jan 4, 2023 at 6:19 AM Nipun Gupta <nipun.gupta at amd.com> wrote:
>
> At the cleanup time when dma unmap is done, linux kernel
> does not allow unmap of individual segments which were
> coalesced together while creating the DMA map for type1 IOMMU
> mappings. So, this change updates the mapping of the memory
> segments(hugepages) on a per-page basis.
>
> Signed-off-by: Nipun Gupta <nipun.gupta at amd.com>
> Signed-off-by: Nikhil Agarwal <nikhil.agarwal at amd.com>

This change is scary.

I won't take it without a review from the maintainer.
Anatoly, can you have a look?


Thanks.
-- 
David Marchand



More information about the dev mailing list