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
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
-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