Re: [PATCH v11 02/40] virtio: struct virtio_config_ops add callbacks for queue_reset

2022-06-30 Thread Xuan Zhuo
On Fri, 1 Jul 2022 02:28:46 -0400, "Michael S. Tsirkin" wrote: > On Wed, Jun 29, 2022 at 02:56:18PM +0800, Xuan Zhuo wrote: > > reset can be divided into the following four steps (example): > > 1. transport: notify the device to reset the queue > > 2. vring: recycle the buffer submitted > >

Re: [PATCH v11 02/40] virtio: struct virtio_config_ops add callbacks for queue_reset

2022-06-30 Thread Michael S. Tsirkin
On Wed, Jun 29, 2022 at 02:56:18PM +0800, Xuan Zhuo wrote: > reset can be divided into the following four steps (example): > 1. transport: notify the device to reset the queue > 2. vring: recycle the buffer submitted > 3. vring: reset/resize the vring (may re-alloc) > 4. transport: mmap

Re: [PATCH v11 02/40] virtio: struct virtio_config_ops add callbacks for queue_reset

2022-06-29 Thread Jason Wang
On Wed, Jun 29, 2022 at 2:57 PM Xuan Zhuo wrote: > > reset can be divided into the following four steps (example): > 1. transport: notify the device to reset the queue > 2. vring: recycle the buffer submitted > 3. vring: reset/resize the vring (may re-alloc) > 4. transport: mmap vring

[PATCH v11 02/40] virtio: struct virtio_config_ops add callbacks for queue_reset

2022-06-28 Thread Xuan Zhuo
reset can be divided into the following four steps (example): 1. transport: notify the device to reset the queue 2. vring: recycle the buffer submitted 3. vring: reset/resize the vring (may re-alloc) 4. transport: mmap vring to device, and enable the queue In order to support queue res