Re: [PATCH 1/2] virtio: allow to detach a buffer from the virtqueue

2018-01-20 Thread Greg Kurz
On Fri, 19 Jan 2018 21:49:38 +0200 "Michael S. Tsirkin" wrote: > On Wed, Dec 20, 2017 at 06:46:42PM +0100, Greg Kurz wrote: > > It is possible for a device to stop using buffers without pushing them > > back to the driver. This is the case for example with the 9p virtio > > device: if the driver

Re: [PATCH 1/2] virtio: allow to detach a buffer from the virtqueue

2018-01-19 Thread Michael S. Tsirkin
On Wed, Dec 20, 2017 at 06:46:42PM +0100, Greg Kurz wrote: > It is possible for a device to stop using buffers without pushing them > back to the driver. This is the case for example with the 9p virtio > device: if the driver flushes an in-flight request, the 9p specification > specification [*] ma

[PATCH 1/2] virtio: allow to detach a buffer from the virtqueue

2017-12-20 Thread Greg Kurz
It is possible for a device to stop using buffers without pushing them back to the driver. This is the case for example with the 9p virtio device: if the driver flushes an in-flight request, the 9p specification specification [*] mandates the server to "to purge the pending response". The reply to