qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 4/9] virtio: handle virtqueue_map_desc() erro


From: Cornelia Huck
Subject: Re: [Qemu-devel] [PATCH v5 4/9] virtio: handle virtqueue_map_desc() errors
Date: Thu, 22 Sep 2016 15:49:43 +0200

On Wed, 21 Sep 2016 16:52:21 +0100
Stefan Hajnoczi <address@hidden> 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 marked the device broken.
> 
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
>  hw/virtio/virtio.c | 74 
> ++++++++++++++++++++++++++++++++++++++++--------------
>  1 file changed, 55 insertions(+), 19 deletions(-)

Reviewed-by: Cornelia Huck <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]