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