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

David Marchand david.marchand at redhat.com
Fri Mar 27 11:13:09 CET 2020


On Tue, Feb 25, 2020 at 2:25 PM Anatoly Burakov
<anatoly.burakov at intel.com> wrote:
>
> 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.

-- 
David Marchand



More information about the dev mailing list