aboutsummaryrefslogtreecommitdiff
path: root/include/linux/vhost_iotlb.h
AgeCommit message (Collapse)AuthorFilesLines
2022-05-31vhost_iotlb: split out IOTLB initializationGautam Dawar1-0/+2
This patch splits out IOTLB initialization to make sure it could be reused by external modules. Signed-off-by: Jason Wang <[email protected]> Signed-off-by: Gautam Dawar <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
2021-09-06vhost-iotlb: Add an opaque pointer for vhost IOTLBXie Yongji1-0/+3
Add an opaque pointer for vhost IOTLB. And introduce vhost_iotlb_add_range_ctx() to accept it. Suggested-by: Jason Wang <[email protected]> Signed-off-by: Xie Yongji <[email protected]> Acked-by: Jason Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
2020-04-01vhost: factor out IOTLBJason Wang1-0/+47
This patch factors out IOTLB into a dedicated module in order to be reused by other modules like vringh. User may choose to enable the automatic retiring by specifying VHOST_IOTLB_FLAG_RETIRE flag to fit for the case of vhost device IOTLB implementation. Signed-off-by: Jason Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>