[Qemu-devel] Re: [PATCH 3/3] virtio block device

2007-12-04 Thread Anthony Liguori
Dor Laor wrote: Anthony Liguori wrote: Subject: [PATCH 3/3] virtio block device + +static void virtio_blk_handle_output(VirtIODevice *vdev, VirtQueue *vq) +{ +VirtIOBlock *s = to_virtio_blk(vdev); +VirtQueueElement elem; +unsigned int count; + +while ((count = virtqueue_pop(vq, &

[Qemu-devel] Re: [PATCH 3/3] virtio block device

2007-12-04 Thread Dor Laor
Anthony Liguori wrote: Subject: [PATCH 3/3] virtio block device + +static void virtio_blk_handle_output(VirtIODevice *vdev, VirtQueue *vq) +{ +VirtIOBlock *s = to_virtio_blk(vdev); +VirtQueueElement elem; +unsigned int count; + +while ((count = virtqueue_pop(vq, &elem)) != 0) { +