[dpdk-stable] [PATCH 18.11] vfio: map contiguous areas in one go

Kevin Traynor ktraynor at redhat.com
Wed Sep 16 23:11:04 CEST 2020


On 16/09/2020 12:26, Anatoly Burakov wrote:

The commit log should have a reference to the dpdk main commit id. I
added while applying.

> Currently, when we are creating DMA mappings for memory that's
> either external or is backed by hugepages in IOVA as PA mode, we
> assume that each page is necessarily discontiguous. This may not
> actually be the case, especially for external memory, where the
> user is able to create their own IOVA table and make it
> contiguous. This is a problem because VFIO has a limited number
> of DMA mappings, and it does not appear to concatenate them and
> treats each mapping as separate, even when they cover adjacent
> areas.
> 
> Fix this so that we always map contiguous memory in a single
> chunk, as opposed to mapping each segment separately.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
> 

Applied, thanks.



More information about the stable mailing list