Skip to content

RFC VIRTIO_NET_F_CTRL_GUEST_OFFLOADS vDPA Shadow VirtQueue implementation

Eugenio Pérez qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio_net: export virtio_net_guest_offloads_by_featureshw/net/virtio-net.c include/hw/virtio/virtio-net.h+2 -10 replies
2/3vdpa: load guest offloads at device startnet/vhost-vdpa.c+29 -20 replies
3/3vdpa: add VIRTIO_NET_F_CTRL_GUEST_OFFLOADS to SVQ featuresnet/vhost-vdpa.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.31.1