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

2016-09-20 Thread Cornelia Huck
On Tue, 12 Apr 2016 14:25:33 +0100 Stefan Hajnoczi wrote: > If the avail ring index is bogus virtqueue_num_heads() must return > -EINVAL. > > The only caller is virtqueue_get_avail_bytes(). Return saying no bytes > are available when virtqueue_num_heads() fails. > > Signed-off-by: Stefan Hajno

[Qemu-devel] [PATCH v3 09/10] virtio: handle virtqueue_num_heads() errors

2016-04-12 Thread Stefan Hajnoczi
If the avail ring index is bogus virtqueue_num_heads() must return -EINVAL. The only caller is virtqueue_get_avail_bytes(). Return saying no bytes are available when virtqueue_num_heads() fails. Signed-off-by: Stefan Hajnoczi --- hw/virtio/virtio.c | 11 --- 1 file changed, 8 insertion