On Tue, Jan 29, 2019 at 09:43:41AM +0100, Joerg Roedel wrote: > From: Joerg Roedel <jroedel@xxxxxxx> > > This function returns the maximum segment size for a single > dma transaction of a virtio device. The possible limit comes > from the SWIOTLB implementation in the Linux kernel, that > has an upper limit of (currently) 256kb of contiguous > memory it can map. Other DMA-API implementations might also > have limits. > > Use the new dma_max_mapping_size() function to determine the > maximum mapping size when DMA-API is in use for virtio. > > Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> > Signed-off-by: Joerg Roedel <jroedel@xxxxxxx> Looks good, Reviewed-by: Christoph Hellwig <hch@xxxxxx>