lkml.org 
[lkml]   [2022]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH 00/16] virtio_ring: resize support re-use the old buffers
Date
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

\
 
 \ /
  Last update: 2022-04-24 04:41    [W:0.058 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site