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

From: Longpeng(Mike)
Date: Mon Jan 17 2022 - 04:29:31 EST


From: Longpeng <longpeng2@xxxxxxxxxx>

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@xxxxxxxxxx/

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