Skip to content

net/virtio-user: support memory hotplug

Xiao Wang dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vhost: retranslate vring addr when memory table changeslib/librte_vhost/vhost_user.c+22 -20 replies
2/2net/virtio-user: support memory hotplugdrivers/net/virtio/virtio_user/virtio_user_dev.c drivers/net/virtio/virtio_user/virtio_user_dev.h+54 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 18.05-RC3 0/2] net/virtio-user: support memory hotplug

This patch set has dependency on http://dpdk.org/dev/patchwork/patch/39283/
("mem: add argument to mem event callbacks").

When memory is hot-added or hot-removed, the virtio-user driver has to notify the vhost-user backend with sending a VHOST_USER_SET_MEM_TABLE request with the new memory map as payload. This patch set registers a mem_event callback to help on that.

Considering some older vhost-user implementation doesn't support runtime memory table change, e.g. DPDK 16.11, we have to pause queues explicitly in the callback routine:
1. disable all the active queues
2. update memory table to vhost
3. resume all the previous active queues

Maxime Coquelin (2):
vhost: retranslate vring addr when memory table changes net/virtio-user: support memory hotplug

 drivers/net/virtio/virtio_user/virtio_user_dev.c | 53 +++++++++++++++++++++++-
 drivers/net/virtio/virtio_user/virtio_user_dev.h |  2 +
 lib/librte_vhost/vhost_user.c                    | 24 ++++++++++-
 3 files changed, 76 insertions(+), 3 deletions(-)
Signature · 1 line
2.15.1