Re: [Qemu-devel] [PATCH v3 05/10] virtio: handle virtqueue_map_desc() errors

2016-09-20 Thread Cornelia Huck
On Tue, 12 Apr 2016 14:25:29 +0100 Stefan Hajnoczi wrote: > Errors can occur during virtqueue_pop(), especially in > virtqueue_map_desc(). In order to handle this we must unmap iov[] > before returning NULL. The caller will consider the virtqueue empty and > the virtio_error() call will have ma

[Qemu-devel] [PATCH v3 05/10] virtio: handle virtqueue_map_desc() errors

2016-04-12 Thread Stefan Hajnoczi
Errors can occur during virtqueue_pop(), especially in virtqueue_map_desc(). In order to handle this we must unmap iov[] before returning NULL. The caller will consider the virtqueue empty and the virtio_error() call will have marked the device broken. Signed-off-by: Stefan Hajnoczi --- hw/vir