Re: [Qemu-devel] [PATCH] virtio-9p: add reset handler

2016-10-07 Thread Stefan Hajnoczi
On Thu, Oct 06, 2016 at 03:12:10PM +0200, Greg Kurz wrote: > Virtio devices should implement the VirtIODevice->reset() function to > perform necessary cleanup actions and to bring the device to a quiescent > state. > > In the case of the virtio-9p device, this means: > - emptying the list of activ

Re: [Qemu-devel] [PATCH] virtio-9p: add reset handler

2016-10-06 Thread Greg Kurz
On Thu, 6 Oct 2016 19:11:03 +0300 "Michael S. Tsirkin" wrote: > On Thu, Oct 06, 2016 at 03:12:10PM +0200, Greg Kurz wrote: > > Virtio devices should implement the VirtIODevice->reset() function to > > perform necessary cleanup actions and to bring the device to a quiescent > > state. > > > > In

Re: [Qemu-devel] [PATCH] virtio-9p: add reset handler

2016-10-06 Thread Michael S. Tsirkin
On Thu, Oct 06, 2016 at 03:12:10PM +0200, Greg Kurz wrote: > Virtio devices should implement the VirtIODevice->reset() function to > perform necessary cleanup actions and to bring the device to a quiescent > state. > > In the case of the virtio-9p device, this means: > - emptying the list of activ

[Qemu-devel] [PATCH] virtio-9p: add reset handler

2016-10-06 Thread Greg Kurz
Virtio devices should implement the VirtIODevice->reset() function to perform necessary cleanup actions and to bring the device to a quiescent state. In the case of the virtio-9p device, this means: - emptying the list of active PDUs (i.e. draining all in-flight I/O) - freeing all fids (i.e. close