mbox series

[v2,0/3] vhost: handle memory hotplug for async vhost

Message ID 20210615141513.16163-1-cheng1.jiang@intel.com (mailing list archive)
Headers show
Series vhost: handle memory hotplug for async vhost | expand

Message

Cheng Jiang June 15, 2021, 2:15 p.m. UTC
When the guest memory is hotplugged, the vhost application which
enables DMA acceleration must stop DMA transfers before the vhost
re-maps the guest memory.

This patch set is to provide an unsafe API to drain in-flight pkts
which are submitted to DMA engine in vhost async data path, and
notify the vhost application of stopping DMA transfers. And enable it
in vhost example.

v2:
 * changed the patch structure

Cheng Jiang (2):
  vhost: add unsafe API to drain pkts in async vhost
  examples/vhost: handle memory hotplug for async vhost

Jiayu Hu (1):
  vhost: handle memory hotplug for async vhost

 examples/vhost/main.c       | 48 +++++++++++++++++++-
 examples/vhost/main.h       |  1 +
 lib/vhost/rte_vhost_async.h | 22 +++++++++
 lib/vhost/version.map       |  3 ++
 lib/vhost/vhost_user.c      |  9 ++++
 lib/vhost/virtio_net.c      | 90 +++++++++++++++++++++++++++----------
 6 files changed, 148 insertions(+), 25 deletions(-)

--
2.29.2