mbox series

[RFC,0/2] Vhost-vdpa Shadow Virtqueue _F_CTRL_RX_EXTRA commands support

Message ID cover.1687524532.git.yin31149@gmail.com (mailing list archive)
Headers show
Series Vhost-vdpa Shadow Virtqueue _F_CTRL_RX_EXTRA commands support | expand

Message

Hawkins Jiawei June 23, 2023, 1:26 p.m. UTC
This series enables shadowed CVQ to intercept rx commands related to
VIRTIO_NET_F_CTRL_RX_EXTRA feature through shadowed CVQ, update the virtio
NIC device model so qemu send it in a migration, and the restore of
that rx state in the destination.

To test this patch series, I modify the `n->parent_obj.guest_features`
value in vhost_vdpa_net_load_rx() using gdb, as the Linux virtio-net
driver does not currently support the VIRTIO_NET_F_CTRL_RX_EXTRA
feature.

Note that this patch should be based on [1], which has not
been merged yet. I will submit the v2 patch after they are merged.

[1]. https://lore.kernel.org/all/cover.1687402580.git.yin31149@gmail.com/

Hawkins Jiawei (2):
  vdpa: Restore packet receive filtering state relative with
    _F_CTRL_RX_EXTRA feature
  vdpa: Allow VIRTIO_NET_F_CTRL_RX_EXTRA in SVQ

 net/vhost-vdpa.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)