Re: [PATCH v2] hw/virtio: Fix packed virtqueue flush used_idx

2024-04-05 Thread Eugenio Perez Martin
On Thu, Apr 4, 2024 at 7:03 PM Wafer wrote: > > If a virtio-net device has the VIRTIO_NET_F_MRG_RXBUF feature > but not the VIRTIO_RING_F_INDIRECT_DESC feature, > 'VirtIONetQueue->rx_vq' will use the merge feature > to store data in multiple 'elems'. > The 'num_buffers' in the virtio header indica

[PATCH v2] hw/virtio: Fix packed virtqueue flush used_idx

2024-04-04 Thread Wafer
If a virtio-net device has the VIRTIO_NET_F_MRG_RXBUF feature but not the VIRTIO_RING_F_INDIRECT_DESC feature, 'VirtIONetQueue->rx_vq' will use the merge feature to store data in multiple 'elems'. The 'num_buffers' in the virtio header indicates how many elements are merged. If the value of 'num_bu