This patch splits out IOTLB initialization to make sure it could be reused by external modules.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -36,6 +36,8 @@ int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, u64 start, u64 last, · 35 unmodified lines | |||
| 36 | u64 addr, unsigned int perm); | 36 | u64 addr, unsigned int perm); |
| 37 | void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last); | 37 | void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last); |
| 38 | 38 | ||
| 39 | void vhost_iotlb_init(struct vhost_iotlb *iotlb, unsigned int limit, | ||
| 40 | unsigned int flags); | ||
| 39 | struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags); | 41 | struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags); |
| 40 | void vhost_iotlb_free(struct vhost_iotlb *iotlb); | 42 | void vhost_iotlb_free(struct vhost_iotlb *iotlb); |
| 41 | void vhost_iotlb_reset(struct vhost_iotlb *iotlb); | 43 | void vhost_iotlb_reset(struct vhost_iotlb *iotlb); |