vhost-iotlb: Add an opaque pointer for vhost IOTLB
authorXie Yongji <xieyongji@bytedance.com>
Tue, 31 Aug 2021 10:36:28 +0000 (18:36 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 6 Sep 2021 11:20:57 +0000 (07:20 -0400)
commit59dfe4f1e810b5820443c84f9863b04b033143e8
treea2f1434febd99d6e5346cd44d419dc4353b19abb
parent7f05630dc65d62df5d55ad3e1038ffbe5e2ce9c3
vhost-iotlb: Add an opaque pointer for vhost IOTLB

Add an opaque pointer for vhost IOTLB. And introduce
vhost_iotlb_add_range_ctx() to accept it.

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-8-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/iotlb.c
include/linux/vhost_iotlb.h