This series enables shadowed CVQ to intercept Offloads commands through shadowed CVQ, update the virtio NIC device model so qemu send it in a migration, and the restore of that Offloads state in the destination.
Changelog ========= v2: - make some function arguments const - reuse virtio_vdev_has_feature() suggested by Eugenio and Jason - avoid sending CVQ command in default state suggested by Eugenio v1: https://lore.kernel.org/all/cover.1685359572.git.yin31...@gmail.com/ Hawkins Jiawei (6): include/hw/virtio: make some VirtIODevice const vdpa: reuse virtio_vdev_has_feature() hw/net/virtio-net: make some VirtIONet const virtio-net: expose virtio_net_supported_guest_offloads() vdpa: Add vhost_vdpa_net_load_offloads() vdpa: Allow VIRTIO_NET_F_CTRL_GUEST_OFFLOADS in SVQ hw/net/virtio-net.c | 2 +- include/hw/virtio/virtio-net.h | 1 + include/hw/virtio/virtio.h | 2 +- net/vhost-vdpa.c | 45 +++++++++++++++++++++++++++++++--- 4 files changed, 44 insertions(+), 6 deletions(-) -- 2.25.1