[RFC 0/3] vdpa: add two ioctl commands to support generic vDPA

Longpeng(Mike)
2022-01-17T09:29:30Z

To support generic vdpa deivce[1], we need add the following ioctls:
- GET_CONFIG_SIZE: the size of the virtio config space (Patch 1)
- GET_VQS_COUNT: the count of virtqueues that exposed (Patch 2)

Patch 3 supports ctrl vq for vdpasim_net, then guys can test the
generic vDPA device on the vdpasim_net/blk.

[1] https://lore.kernel.org/all/20220105005900.860-1-longpeng2@huawei.com/

Longpeng (3):
vdpa: support exposing the config size to userspace
vdpa: support exposing the count of vqs to userspace
vdpasim_net: control virtqueue support

drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 83 +++++++++++++++++++++++++++-
drivers/vhost/vdpa.c | 30 ++++++++++
include/uapi/linux/vhost.h | 7 +++
3 files changed, 118 insertions(+), 2 deletions(-)

--
2.23.0