On Tue, Feb 25, 2020 at 2:25 PM Anatoly Burakov <anatoly.bura...@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.bura...@intel.com>
Applied, thanks. -- David Marchand