vduse: Support querying information of IOVA regions
authorXie Yongji <xieyongji@bytedance.com>
Wed, 3 Aug 2022 04:55:23 +0000 (12:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:26:08 +0000 (04:26 -0400)
commitad146355bfad627bd0717ece73997c6c93b1b82e
treec0d44a43e357090a66bc7de0c724b75944ee1ad4
parent79a463be9e0051997508d52cf411ed5e91d657f6
vduse: Support querying information of IOVA regions

This introduces a new ioctl: VDUSE_IOTLB_GET_INFO to
support querying some information of IOVA regions.

Now it can be used to query whether the IOVA region
supports userspace memory registration.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Message-Id: <20220803045523.23851-6-xieyongji@bytedance.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/vdpa_user/vduse_dev.c
include/uapi/linux/vduse.h