This patch set is based on "virtio pci support VIRTIO_F_RING_RESET". This patch set is rfc since it hasn't been merged yet. And "virtio pci support VIRTIO_F_RING_RESET" is currently waiting for Jason Wang's "rework on the IRQ hardening of virtio". This patch set implements the reuse of buffers committed before resize. And it is resubmitted to the new vq in the order of the original submission. A core idea is to detach the original vring after the new vring is allocated. Then, the buffers are sequentially obtained from the old vring and submitted to the new vq. Please review. Xuan Zhuo (16): virtio_ring: split: vring_unmap_one_split() get extra by arg virtio_ring: split: introduce vring_virtqueue_detach_split() virtio_ring: split: extract virtqueue_update_split() virtio_ring: split: extract detach_from_vring_split() virtio_ring: split: support copy from vring virtio_ring: split: introduce vring_reuse_bufs_split() virtio_ring: split: resize support re-use buffers virtio_ring: packed: extract next_idx() virtio_ring: packed: always update desc_extra virtio_ring: packed: introduce vring_virtqueue_detach_packed() virtio_ring: packed: extract virtqueue_update_packed() virtio_ring: packed: extract detach_from_vring_packed() virtio_ring: packed: support copy from vring virtio_ring: packed: introduce vring_reuse_bufs_packed() virtio_ring: packed: resize support re-use buffers virtio_ring: virtqueue_resize() no longer call recycle() directly drivers/virtio/virtio_ring.c | 685 ++++++++++++++++++++++++++--------- 1 file changed, 518 insertions(+), 167 deletions(-) -- 2.31.0 _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization