Re: [Qemu-devel] [PATCH 0/3] virtio: detach VirtQueueElements freed by reset

2016-10-05 Thread Greg Kurz
On Tue, 27 Sep 2016 11:08:53 +0100 Stefan Hajnoczi wrote: > On Mon, Sep 19, 2016 at 02:28:02PM +0100, Stefan Hajnoczi wrote: > > virtio-blk and virtio-serial need to free VirtQueueElements during device > > reset. Simply calling g_free(elem) is not enough because the scatter-gather > > list shou

Re: [Qemu-devel] [PATCH 0/3] virtio: detach VirtQueueElements freed by reset

2016-09-27 Thread Stefan Hajnoczi
On Mon, Sep 19, 2016 at 02:28:02PM +0100, Stefan Hajnoczi wrote: > virtio-blk and virtio-serial need to free VirtQueueElements during device > reset. Simply calling g_free(elem) is not enough because the scatter-gather > list should be unmapped and vq->inuse must be decremented. > > These patches