diff options
| author | 2022-03-30 23:33:48 +0530 | |
|---|---|---|
| committer | 2022-05-31 12:44:28 -0400 | |
| commit | 1cb108994c6830cc6a6e066ad7d9a22ef59fa167 (patch) | |
| tree | b24269d0359a29748df3de6bf4f6ff423a3846a1 /include | |
| parent | vdpa: introduce config operations for associating ASID to a virtqueue group (diff) | |
| download | linux-dev-1cb108994c6830cc6a6e066ad7d9a22ef59fa167.tar.xz linux-dev-1cb108994c6830cc6a6e066ad7d9a22ef59fa167.zip | |
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')
| -rw-r--r-- | include/linux/vhost_iotlb.h | 2 |
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); |
