mbox series

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

Message ID 20220117092921.1573-1-longpeng2@huawei.com (mailing list archive)
Headers show
Series vdpa: add two ioctl commands to support generic vDPA | expand

Message

Longpeng(Mike) Jan. 17, 2022, 9:29 a.m. UTC
From: Longpeng <longpeng2@huawei.com>

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(-)