Skip to content

Drop vhost async (DMA-accelerated) datapath

David Marchand dpdk-dev 4 versions – Applied

Status from this message: Applied to next-virtio/for-next-net.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 4 repliesApplied
  2. v36 patches 3 repliesSuperseded
  3. v26 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches0 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6vhost: decouple guest pages population from async datapathdoc/guides/prog_guide/vhost_lib.rst doc/guides/rel_notes/release_26_11.rst examples/vhost_crypto/Makefile +6 more+33 -90 replies
2/6examples/vhost: stop using async datapathdoc/guides/sample_app_ug/vhost.rst examples/vhost/Makefile examples/vhost/main.c +2 more+12 -4600 replies
3/6examples/vdpa: remove dependency on PCI libraryexamples/vdpa/main.c+0 -10 replies
4/6vhost: drop async datapathdoc/guides/prog_guide/vhost_lib.rst doc/guides/rel_notes/release_26_11.rst lib/vhost/meson.build +7 more+687 -37351 reply
5/6vhost: rename packed layout helpers for batcheslib/vhost/virtio_net.c+9 -191 reply
6/6vhost: simplify some descriptor handlinglib/vhost/virtio_net.c+32 -491 reply

Reviews trailers per patch

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

PatchMaxime Coquelin
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/6] Drop vhost async (DMA-accelerated) datapath

The integration of this feature in OVS has been postponed following feedback how the current API forced the complexity on the application side. There is no contributor working on making those changes.

The feature has no other identified opensource consumer.

On the other hand, this feature has been left unattended for some years now while the "normal" datapath is actively maintained.
It is highly likely the async datapath code, which never underwent a stabilisation phase, is riddled with bugs.

Given the craziness around finding security bugs with AI, and since the vhost library is a good target, I propose to drop this feature and reduce the library attack surface.

There is one complication with the vhost_crypto and some external applications that seemed to rely on the async flag to track and populate guest pages, so a new flag replacing async is added by this series.

Signature · 51 lines
David Marchand

Changes since v3:
- rebased after CVE fixes and various changes: RTE_PTR_ADD, VFIO,
  signal cleanup in examples,

Changes since v2:
- updated release notes and vhost example documentation,
- removed some async statistics missed in previous revisions,
- re-added checks on map populate and post copy or other virtio features,

Changes since v1:
- removed unneeded dependencies on the PCI library,

Changes since RFC:
- maintained guest pages population in a new flag (vhost_crypto/SPDK),
- removed remaining helpers which had sync_ in their names,


David Marchand (6):
  vhost: decouple guest pages population from async datapath
  examples/vhost: stop using async datapath
  examples/vdpa: remove dependency on PCI library
  vhost: drop async datapath
  vhost: rename packed layout helpers for batches
  vhost: simplify some descriptor handling

 doc/guides/prog_guide/vhost_lib.rst    |  152 +-
 doc/guides/rel_notes/release_26_11.rst |   24 +
 doc/guides/sample_app_ug/vhost.rst     |   10 -
 examples/vdpa/main.c                   |    1 -
 examples/vhost/Makefile                |    2 -
 examples/vhost/main.c                  |  437 +---
 examples/vhost/main.h                  |   21 +-
 examples/vhost/meson.build             |    2 -
 examples/vhost_crypto/Makefile         |    1 -
 examples/vhost_crypto/main.c           |    2 +-
 examples/vhost_crypto/meson.build      |    1 -
 lib/vhost/meson.build                  |    3 +-
 lib/vhost/rte_vhost.h                  |    2 +-
 lib/vhost/rte_vhost_async.h            |  293 ---
 lib/vhost/socket.c                     |   23 +-
 lib/vhost/vhost.c                      |  436 ----
 lib/vhost/vhost.h                      |  119 +-
 lib/vhost/vhost_user.c                 |  115 +-
 lib/vhost/virtio_net.c                 | 3318 +++++-------------------
 19 files changed, 731 insertions(+), 4231 deletions(-)
 delete mode 100644 lib/vhost/rte_vhost_async.h

-- 
2.54.0