Re: [PATCH v5 14/22] virtio_pci: queue_reset: support VIRTIO_F_RING_RESET

2022-02-16 Thread Jason Wang
On Wed, Feb 16, 2022 at 4:08 PM Xuan Zhuo wrote: > > On Wed, 16 Feb 2022 12:14:25 +0800, Jason Wang wrote: > > On Mon, Feb 14, 2022 at 4:14 PM Xuan Zhuo > > wrote: > > > > > > This patch implements virtio pci support for QUEUE RESET. > > > > > > Performing reset on a queue is divided into

Re: [PATCH v5 14/22] virtio_pci: queue_reset: support VIRTIO_F_RING_RESET

2022-02-16 Thread Xuan Zhuo
On Wed, 16 Feb 2022 12:14:25 +0800, Jason Wang wrote: > On Mon, Feb 14, 2022 at 4:14 PM Xuan Zhuo wrote: > > > > This patch implements virtio pci support for QUEUE RESET. > > > > Performing reset on a queue is divided into these steps: > > > > 1. reset_vq: reset one vq > > 2. recycle the buffer

Re: [PATCH v5 14/22] virtio_pci: queue_reset: support VIRTIO_F_RING_RESET

2022-02-15 Thread Jason Wang
On Mon, Feb 14, 2022 at 4:14 PM Xuan Zhuo wrote: > > This patch implements virtio pci support for QUEUE RESET. > > Performing reset on a queue is divided into these steps: > > 1. reset_vq: reset one vq > 2. recycle the buffer from vq by virtqueue_detach_unused_buf() > 3. release the ring of the

[PATCH v5 14/22] virtio_pci: queue_reset: support VIRTIO_F_RING_RESET

2022-02-14 Thread Xuan Zhuo
This patch implements virtio pci support for QUEUE RESET. Performing reset on a queue is divided into these steps: 1. reset_vq: reset one vq 2. recycle the buffer from vq by virtqueue_detach_unused_buf() 3. release the ring of the vq by vring_release_virtqueue() 4. enable_reset_vq: re-enable the