Drop vhost async (DMA-accelerated) datapath
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
- v4 Latest6 patches 4 repliesApplied
- v36 patches 3 repliesSuperseded
- v26 patches 3 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 5 patches | 0 replies | Superseded |
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | vhost: decouple guest pages population from async datapathdoc/ doc/ examples/ +6 more | +33 | 0 replies | |
| 2/6 | examples/vhost: stop using async datapathdoc/ examples/ examples/ +2 more | +12 | 0 replies | |
| 3/6 | examples/vdpa: remove dependency on PCI libraryexamples/ | +0 | 0 replies | |
| 4/6 | vhost: drop async datapathdoc/ doc/ lib/ +7 more | +687 | 1 reply | |
| 5/6 | vhost: rename packed layout helpers for batcheslib/ | +9 | 1 reply | |
| 6/6 | vhost: simplify some descriptor handlinglib/ | +32 | 1 reply |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Maxime Coquelin |
|---|---|
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | R-b |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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