[RFC PATCH 0/3] VIRTIO_NET_F_CTRL_GUEST_OFFLOADS vDPA Shadow VirtQueue implementation

Eugenio Pérez posted 3 patches 1 year, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20221125143859.2211494-1-eperezma@redhat.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>
include/hw/virtio/virtio-net.h |  1 +
hw/net/virtio-net.c            |  2 +-
net/vhost-vdpa.c               | 32 ++++++++++++++++++++++++++++++--
3 files changed, 32 insertions(+), 3 deletions(-)
[RFC PATCH 0/3] VIRTIO_NET_F_CTRL_GUEST_OFFLOADS vDPA Shadow VirtQueue implementation
Posted by Eugenio Pérez 1 year, 5 months ago
This feature allows the driver to send control commands for dynamic offloads
state configuration.

When a guest is migrated the destination device needs to be restored with the
same offloads. As other features configurable via CVQ, intercept the control
messages, update the device model and load that configuration at device
restore.

Only tested with modified vdpa_sim_net. Comments are welcome.

Eugenio Pérez (3):
  virtio_net: export virtio_net_guest_offloads_by_features
  vdpa: load guest offloads at device start
  vdpa: add VIRTIO_NET_F_CTRL_GUEST_OFFLOADS to SVQ features

 include/hw/virtio/virtio-net.h |  1 +
 hw/net/virtio-net.c            |  2 +-
 net/vhost-vdpa.c               | 32 ++++++++++++++++++++++++++++++--
 3 files changed, 32 insertions(+), 3 deletions(-)

-- 
2.31.1