Skip to content

vdpa: add two ioctl commands to support generic vDPA

Longpeng(Mike) kvm lkml netdev virtualization 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/23 patches 5 repliesIn review
  2. v2 posting 1/22 patches 3 repliesSuperseded
  3. v1 RFC3 patches 5 repliesSuperseded

Changes v2 -> v3 from the cover letter

Patch 2:
- use a separate patch for the u32 converting. [Jason]

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vdpa: support exposing the config size to userspacedrivers/vhost/vdpa.c include/linux/vdpa.h include/uapi/linux/vhost.h+23 -11 reply
2/3vdpa: change the type of nvqs to u32drivers/vdpa/vdpa.c drivers/vhost/vdpa.c include/linux/vdpa.h+12 -102 replies
3/3vdpa: support exposing the count of vqs to userspacedrivers/vhost/vdpa.c include/uapi/linux/vhost.h+16 -02 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJason WangStefano Garzarella
1/3A-b R-b
2/3A-b R-b
3/3A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] vdpa: add two ioctl commands to support generic vDPA

From: Longpeng <[email protected]>

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)

Changes v2 -> v3:
Patch 2:
- use a separate patch for the u32 converting. [Jason]

Changes v1(RFC) -> v2:
Patch 1:
- be more verbose in commit message and the comment for get_config_size [Jason]
Patch 2:
- change the type of nvqs to u32 [Jason]
Patch 3:
- drop from this series because Gautam sent another proposal[2]

[1] https://lore.kernel.org/all/[email protected]/
[2] https://patchwork.kernel.org/project/kvm/patch/[email protected]/

Longpeng (3):
vdpa: support exposing the config size to userspace
vdpa: change the type of nvqs to u32
vdpa: support exposing the count of vqs to userspace

 drivers/vdpa/vdpa.c        |  6 +++---
 drivers/vhost/vdpa.c       | 40 ++++++++++++++++++++++++++++++++++++----
 include/linux/vdpa.h       |  9 +++++----
 include/uapi/linux/vhost.h |  7 +++++++
 4 files changed, 51 insertions(+), 11 deletions(-)
Signature · 1 line
1.8.3.1