qemu-irix/hw
yinyin 358bb0daa1 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>
(cherry picked from commit 1ae2757c6c)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2013-09-24 19:36:15 -05:00
..
9pfs virtio-9p-device: Avoid freeing uninitialized memory 2013-08-01 11:18:24 -05:00
acpi
alpha
arm pxa2xx: Avoid object_get_link_property() assertion for "parent_bus" 2013-08-05 11:46:58 -05:00
audio pl041: QOM cast cleanup 2013-07-29 21:05:58 +02:00
block pc_sysfw: do not make it a device anymore 2013-08-12 09:31:14 -05:00
bt
char pseries: Fix stalls on hypervisor virtual console 2013-09-24 19:23:18 -05:00
core Bugfix for loading multiboot kernels 2013-08-07 12:46:40 -05:00
cpu arm11mpcore: QOM cast cleanups for mpcore_rirq_state 2013-07-29 20:44:02 +02:00
cris
display tcx: QOM cast cleanup 2013-07-29 21:06:05 +02:00
dma sun4m_iommu: QOM cast cleanup 2013-07-29 21:06:46 +02:00
gpio gpio/zaurus: QOM cast cleanup 2013-07-29 21:06:57 +02:00
i2c exynos4210_i2c: QOM cast cleanup 2013-07-29 21:07:02 +02:00
i386 pvpanic: fix bad merge 2013-08-13 09:02:52 -05:00
ide ide: Introduce abstract QOM type for PCIIDEState 2013-07-29 20:41:49 +02:00
input pl050: QOM'ify pl050_keyboard and pl050_mouse 2013-07-29 21:06:57 +02:00
intc ioapic: QOM cast cleanup 2013-07-29 21:07:02 +02:00
isa i82378: Cleanup implementation 2013-07-31 23:25:41 +02:00
lm32 lm32_juart: QOM cast cleanup 2013-07-29 21:06:28 +02:00
m68k
microblaze
mips mips_malta: do not raise exceptions when accessing invalid memory 2013-08-14 16:47:30 +02:00
misc hw/misc: make pvpanic known to user 2013-08-12 11:20:57 -05:00
moxie
net pcnet: Flush queued packets on end of STOP state 2013-08-05 14:11:17 +02:00
nvram fw_cfg: the I/O port variant expects little-endian 2013-08-07 12:48:15 -05:00
openrisc
pci pcie_port: Turn PCIEPort and PCIESlot into abstract QOM types 2013-07-29 20:45:24 +02:00
pci-bridge i82801b11: Fix i82801b11 PCI host bridge config space 2013-08-12 12:07:12 +03:00
pci-host pc: fix regression for 64 bit PCI memory 2013-09-24 19:12:03 -05:00
ppc spapr: Rename 'dprintf' to 'DPRINTF' 2013-07-29 19:56:46 -05:00
s390x s390x: Rename 'dprintf' to 'DPRINTF' 2013-07-29 19:33:54 -05:00
scsi scsi: Fix scsi_bus_legacy_add_drive() scsi-generic with serial 2013-09-24 19:10:35 -05:00
sd pl181: QOM cast cleanup 2013-07-29 21:07:00 +02:00
sh4
sparc sun4m: QOM cast cleanup for RamDevice 2013-07-29 21:07:00 +02:00
sparc64 sun4u: QOM cast cleanup for RamDevice 2013-07-29 21:07:00 +02:00
ssi xilinx_spi: QOM cast cleanup 2013-07-29 21:07:01 +02:00
timer xilinx_timer: QOM cast cleanup 2013-07-29 21:07:02 +02:00
tpm
unicore32
usb usb/dev-hid: Modified usb-tablet category from Misc to Input 2013-09-24 19:09:19 -05:00
virtio virtio: virtqueue_get_avail_bytes: fix desc_pa when loop over the indirect descriptor table 2013-09-24 19:36:15 -05:00
watchdog
xen
xtensa
Makefile.objs