summaryrefslogtreecommitdiff
path: root/include/linux/vhost_iotlb.h
diff options
context:
space:
mode:
authorGautam Dawar <gautam.dawar@xilinx.com>2022-03-30 21:03:48 +0300
committerMichael S. Tsirkin <mst@redhat.com>2022-05-31 19:44:28 +0300
commit1cb108994c6830cc6a6e066ad7d9a22ef59fa167 (patch)
treeb24269d0359a29748df3de6bf4f6ff423a3846a1 /include/linux/vhost_iotlb.h
parent46d554b1bcd19133401d2d5c0728b85e7bfd1358 (diff)
downloadlinux-1cb108994c6830cc6a6e066ad7d9a22ef59fa167.tar.xz
vhost_iotlb: split out IOTLB initialization
This patch splits out IOTLB initialization to make sure it could be reused by external modules. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Gautam Dawar <gdawar@xilinx.com> Message-Id: <20220330180436.24644-9-gdawar@xilinx.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/linux/vhost_iotlb.h')
-rw-r--r--include/linux/vhost_iotlb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/vhost_iotlb.h b/include/linux/vhost_iotlb.h
index 2d0e2f52f938..e79a40838998 100644
--- a/include/linux/vhost_iotlb.h
+++ b/include/linux/vhost_iotlb.h
@@ -36,6 +36,8 @@ int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, u64 start, u64 last,
u64 addr, unsigned int perm);
void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last);
+void vhost_iotlb_init(struct vhost_iotlb *iotlb, unsigned int limit,
+ unsigned int flags);
struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags);
void vhost_iotlb_free(struct vhost_iotlb *iotlb);
void vhost_iotlb_reset(struct vhost_iotlb *iotlb);