aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorGravatar Maxime Coquelin <maxime.coquelin@redhat.com> 2024-02-19 18:06:06 +0100
committerGravatar Michael S. Tsirkin <mst@redhat.com> 2024-03-19 02:45:49 -0400
commitd7b4e3287ca3a7baf66efd9158498e551a9550da (patch)
tree8175cee3b84db3c9bafb4ba10b9626945475359b /include/uapi/linux
parentvdpa/mlx5: Allow CVQ size changes (diff)
downloadlinux-d7b4e3287ca3a7baf66efd9158498e551a9550da.tar.gz
linux-d7b4e3287ca3a7baf66efd9158498e551a9550da.tar.bz2
linux-d7b4e3287ca3a7baf66efd9158498e551a9550da.zip
vduse: implement DMA sync callbacks
Since commit 295525e29a5b ("virtio_net: merge dma operations when filling mergeable buffers"), VDUSE device require support for DMA's .sync_single_for_cpu() operation as the memory is non-coherent between the device and CPU because of the use of a bounce buffer. This patch implements both .sync_single_for_cpu() and .sync_single_for_device() callbacks, and also skip bounce buffer copies during DMA map and unmap operations if the DMA_ATTR_SKIP_CPU_SYNC attribute is set to avoid extra copies of the same buffer. Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Message-Id: <20240219170606.587290-1-maxime.coquelin@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions