Re: [PATCH v4 00/15] Dynamically switch to vhost shadow virtqueues at vdpa net migration

2023-02-27 Thread Alvaro Karsz
t; include/hw/virtio/vhost-vdpa.h | 3 + > hw/virtio/vhost-shadow-virtqueue.c | 8 +- > hw/virtio/vhost-vdpa.c | 128 +-- > hw/virtio/vhost.c | 3 + > net/vhost-vdpa.c | 198 - > hw/virtio/trace-events | 1 + > 7 files changed, 273 insertions(+), 72 deletions(-) > > -- The migration works with SolidNET DPU. Tested-by: Alvaro Karsz

Re: [PATCH v3 04/14] vdpa: add vhost_vdpa_suspend

2023-02-16 Thread Alvaro Karsz
Hi, > The function vhost.c:vhost_dev_stop fetches the vring base so the vq > state can be migrated to other devices. However, this is unreliable in > vdpa, since we didn't signal the device to suspend the queues, making > the value fetched useless. > > Suspend the device if possible before fetchi

Re: [PATCH v2 00/13] Dynamycally switch to vhost shadow virtqueues at vdpa net migration

2023-02-08 Thread Alvaro Karsz
-vdpa,vhostdev=/dev/vhost-vdpa-0,id=hostnet0" The destination VM with "-netdev vhost-vdpa,vhostdev=/dev/vhost-vdpa-1,id=hostnet0" - Boot the source VM, test the network by pinging. - Migrate - Test the destination VM network. Everything worked fine. Tested-by: Alvaro Karsz