kernel-hacking-2024-linux-s.../drivers/virtio
Joerg Roedel e6d6dd6c87 virtio: Introduce virtio_max_dma_size()
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.

Cc: stable@vger.kernel.org
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2019-03-06 11:19:15 -05:00
..
Kconfig
Makefile
virtio.c
virtio_balloon.c virtio-balloon: tweak config_changed implementation 2019-01-14 20:15:20 -05:00
virtio_input.c
virtio_mmio.c virtio: don't allocate vqs when names[i] = NULL 2019-01-14 20:15:19 -05:00
virtio_pci_common.c virtio_pci: use queue idx instead of array idx to set up the vq 2019-01-14 20:15:18 -05:00
virtio_pci_common.h
virtio_pci_legacy.c virtio: remove deprecated VIRTIO_PCI_CONFIG() 2018-12-19 18:23:49 -05:00
virtio_pci_modern.c
virtio_ring.c virtio: Introduce virtio_max_dma_size() 2019-03-06 11:19:15 -05:00