summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXie Yongji <xieyongji@bytedance.com>2021-08-31 12:36:29 +0200
committerMichael S. Tsirkin <mst@redhat.com>2021-09-06 13:20:57 +0200
commitc10fb9454adc80c062151c6a436047e1fa59e99f (patch)
tree51d2427cd476634ee2936ce563e7582ad0ae488b /include
parentvhost-iotlb: Add an opaque pointer for vhost IOTLB (diff)
downloadlinux-c10fb9454adc80c062151c6a436047e1fa59e99f.tar.xz
linux-c10fb9454adc80c062151c6a436047e1fa59e99f.zip
vdpa: Add an opaque pointer for vdpa_config_ops.dma_map()
Add an opaque pointer for DMA mapping. Suggested-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Xie Yongji <xieyongji@bytedance.com> Acked-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20210831103634.33-9-xieyongji@bytedance.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/vdpa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h
index e1eae8c7483d..f3014aaca47e 100644
--- a/include/linux/vdpa.h
+++ b/include/linux/vdpa.h
@@ -270,7 +270,7 @@ struct vdpa_config_ops {
/* DMA ops */
int (*set_map)(struct vdpa_device *vdev, struct vhost_iotlb *iotlb);
int (*dma_map)(struct vdpa_device *vdev, u64 iova, u64 size,
- u64 pa, u32 perm);
+ u64 pa, u32 perm, void *opaque);
int (*dma_unmap)(struct vdpa_device *vdev, u64 iova, u64 size);
/* Free device resources */