qemu/hw/virtio
yinyin 1ae2757c6c virtio: virtqueue_get_avail_bytes: fix desc_pa when loop over the indirect descriptor table
virtqueue_get_avail_bytes: when found a indirect desc, we need loop over it.
           /* loop over the indirect descriptor table */
           indirect = 1;
           max = vring_desc_len(desc_pa, i) / sizeof(VRingDesc);
           num_bufs = i = 0;
           desc_pa = vring_desc_addr(desc_pa, i);
But, It init i to 0, then use i to update desc_pa. so we will always get:
desc_pa = vring_desc_addr(desc_pa, 0);
the last two line should swap.

Cc: qemu-stable@nongnu.org
Signed-off-by: Yin Yin <yin.yin@cs2c.com.cn>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2013-08-25 12:52:33 +03:00
..
dataplane virtio: clear signalled_used_valid when switching from dataplane 2013-08-12 12:19:04 +03:00
Makefile.objs virtio: Implement MMIO based virtio transport 2013-07-19 12:58:47 +01:00
vhost.c vhost: clear signalled_used_valid on vhost stop 2013-08-12 12:25:17 +03:00
virtio-balloon.c devices: Associate devices to their logical category 2013-07-29 10:37:09 -05:00
virtio-bus.c qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path 2013-05-30 11:44:27 -05:00
virtio-mmio.c hw/virtio/virtio-mmio: Make QueueNumMax read 0 for unavailable queues 2013-08-12 11:57:56 +01:00
virtio-pci.c devices: Associate devices to their logical category 2013-07-29 10:37:09 -05:00
virtio-pci.h virtio-pci: cleanup. 2013-04-24 11:50:20 -05:00
virtio-rng.c devices: Associate devices to their logical category 2013-07-29 10:37:09 -05:00
virtio.c virtio: virtqueue_get_avail_bytes: fix desc_pa when loop over the indirect descriptor table 2013-08-25 12:52:33 +03:00