mbox series

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

Message ID 20221125143859.2211494-1-eperezma@redhat.com (mailing list archive)
Headers show
Series VIRTIO_NET_F_CTRL_GUEST_OFFLOADS vDPA Shadow VirtQueue implementation | expand

Message

Eugenio Perez Martin Nov. 25, 2022, 2:38 p.m. UTC
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(-)