Skip to content

virtio-user: introduce vhost-vdpa backend

Maxime Coquelin dpdk-dev 3 versions – Applied

Status from this message: Applied to dpdk-next-virtio/main.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 14 repliesApplied
  2. v28 patches 2 repliesSuperseded
  3. v17 patches 8 repliesSuperseded

Changes in v3 from the cover letter

--------------
* Fix 32bit builds (CI & Chenbo)
* Fix checkpatch

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/8bus/vdev: add DMA mapping opsdrivers/bus/vdev/rte_bus_vdev.h drivers/bus/vdev/vdev.c+95 -31 reply
2/8net/virtio: introduce DMA opsdrivers/net/virtio/virtio_user/vhost.h drivers/net/virtio/virtio_user_ethdev.c+58 -01 reply
3/8net/virtio: move backend type selection to ethdevdrivers/net/virtio/virtio_user/virtio_user_dev.c drivers/net/virtio/virtio_user/virtio_user_dev.h drivers/net/virtio/virtio_user_ethdev.c+50 -266 replies
4/8net/virtio: introduce Vhost-vDPA backend typedrivers/net/virtio/virtio_user/virtio_user_dev.h drivers/net/virtio/virtio_user_ethdev.c+45 -41 reply
5/8net/virtio: check protocol feature in user backenddrivers/net/virtio/virtio_user/vhost_user.c drivers/net/virtio/virtio_user/virtio_user_dev.c+5 -71 reply
6/8net/virtio: adapt Virtio-user status sizedrivers/net/virtio/virtio_user/virtio_user_dev.c+23 -111 reply
7/8net/virtio: split virtio-user startdrivers/net/virtio/virtio_user/virtio_user_dev.c drivers/net/virtio/virtio_user/virtio_user_dev.h drivers/net/virtio/virtio_user_ethdev.c+37 -181 reply
8/8net/virtio: introduce Vhost-vDPA backenddrivers/net/virtio/meson.build drivers/net/virtio/virtio_user/vhost.h drivers/net/virtio/virtio_user/vhost_vdpa.c +1 more+306 -01 reply

Reviews trailers per patch

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

PatchChenbo Xia
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v3 thread

Cover letter [dpdk-dev] [PATCH v3 0/8] virtio-user: introduce vhost-vdpa backend

vhost-vDPA is a new vhost backend type introduced by vDPA kernel framework, which provides abstruction to the vDPA devices and exposes to userspace a unified control interface through char devs.

This patch set adds vhost-vdpa backend type to the virtio_user. A set of vhost-vdpa specific ops callbacks are attached to the virtio_user according to the runtime dynamic check result of the backend type. DMA memory map/unmap callbacks are added to both vdev bus driver and virtio_user pmd to support address mapping. In addition, minor fixes to existing virtio control path are also implemented to make the new backend work.

This is a collaborative work done with Patrick Fu from Intel and Adrian Moreno from Red Hat. Thanks to them for their contributions.

The series has been tested with vdpasim and Intel IFC Kernel vDPA drivers, and more lightly with Mellanox mlx5_vdpa on ConnectX-6 Dx.

Changes in v3:
--------------
* Fix 32bit builds (CI & Chenbo)
* Fix checkpatch

Changes in v2:
--------------
* Split backend-type patch (Adrian)
* Fix get_status size (Chenbo)
* Various minro fixes (Chenbo)

Adrian Moreno (1):
net/virtio: move backend type selection to ethdev

Maxime Coquelin (7):
bus/vdev: add DMA mapping ops
net/virtio: introduce DMA ops
net/virtio: introduce Vhost-vDPA backend type net/virtio: check protocol feature in user backend net/virtio: adapt Virtio-user status size net/virtio: split virtio-user start net/virtio: introduce Vhost-vDPA backend

 drivers/bus/vdev/rte_bus_vdev.h               |  46 ++-
 drivers/bus/vdev/vdev.c                       |  52 +++
 drivers/net/virtio/meson.build                |   1 +
 drivers/net/virtio/virtio_user/vhost.h        |   5 +
 drivers/net/virtio/virtio_user/vhost_user.c   |   6 +-
 drivers/net/virtio/virtio_user/vhost_vdpa.c   | 298 ++++++++++++++++++
 .../net/virtio/virtio_user/virtio_user_dev.c  | 117 ++++---
 .../net/virtio/virtio_user/virtio_user_dev.h  |  13 +-
 drivers/net/virtio/virtio_user_ethdev.c       | 126 +++++++-
 9 files changed, 607 insertions(+), 57 deletions(-)
 create mode 100644 drivers/net/virtio/virtio_user/vhost_vdpa.c
Signature · 1 line
2.26.2