qemu-irix/include/hw
Jason Wang feb93f3617 virtio-net: unbreak any layout
Commit 032a74a1c0
("virtio-net: byteswap virtio-net header") breaks any layout by
requiring out_sg[0].iov_len >= n->guest_hdr_len. Fixing this by
copying header to temporary buffer if swap is needed, and then use
this buffer as part of out_sg.

Fixes 032a74a1c0
("virtio-net: byteswap virtio-net header")
Cc: qemu-stable@nongnu.org
Cc: clg@fr.ibm.com
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2015-07-20 14:19:41 +03:00
..
acpi ich9: add TCO interface emulation 2015-07-07 13:12:22 +03:00
arm Stop including qemu-common.h in memory.h 2015-07-06 14:59:09 +02:00
audio
block BlockConf: Call backend functions to detect geometry and blocksizes 2015-03-10 14:02:22 +01:00
char char: cadence_uart: Split state struct and type into header 2015-05-18 16:41:12 +01:00
cpu
cris
i2c
i386 target-i386: emulate CPUID level of real hardware 2015-07-15 17:05:59 -03:00
input
intc hw/intc/arm_gic: Make ICCICR/GICC_CTLR banked 2015-05-12 11:57:17 +01:00
ipack
isa pc: export applesmc IO port/len 2015-03-01 12:33:22 +01:00
kvm
lm32 hmp: Name HMP info handler functions hmp_info_SUBCOMMAND() 2015-02-18 11:58:50 +01:00
m68k
mem pc,pc-dimm: Factor out reusable parts in pc_dimm_plug to a separate routine 2015-07-03 17:47:58 -03:00
mips net/dp8393x: QOM'ify 2015-06-11 10:13:30 +01:00
misc stm32f2xx_SYSCFG: Add the stm32f2xx SYSCFG 2015-03-11 13:21:05 +00:00
net net: cadence_gem: Split state struct and type into header 2015-05-18 16:41:11 +01:00
nvram fw_cfg: remove support for guest-side data writes 2015-06-10 08:00:37 +02:00
pci pc,virtio,pci: fixes and updates 2015-07-08 13:36:19 +01:00
pci-host spapr: Merge sPAPREnvironment into sPAPRMachineState 2015-07-07 17:44:50 +02:00
ppc xics_kvm: Don't enable KVM_CAP_IRQ_XICS if already enabled 2015-07-07 17:44:52 +02:00
s390x virtio-ccw: introduce ccw specific queue limit 2015-05-31 16:45:38 +02:00
scsi
sh4
sparc QOM infrastructure fixes and device conversions 2015-03-02 13:20:43 +00:00
timer stm32f2xx_timer: Add the stm32f2xx Timer 2015-03-11 13:21:05 +00:00
tricore
unicore32
usb
vfio hw/vfio/platform: add irqfd support 2015-07-06 12:15:14 -06:00
virtio virtio-net: unbreak any layout 2015-07-20 14:19:41 +03:00
watchdog s390x/watchdog: introduce diag288 watchdog device 2015-06-11 17:45:49 +02:00
xen Fix the compatibility typedef of ioservid_t to match the Xen headers 2015-07-08 15:51:03 +01:00
boards.h ich9: add TCO interface emulation 2015-07-07 13:12:22 +03:00
bt.h
compat.h hw: Define empty HW_COMPAT_2_[23] macros 2015-05-31 16:26:41 +02:00
devices.h
elf_ops.h elf-loader: Add missing error handling for call of lseek 2015-03-19 11:37:40 +03:00
empty_slot.h
fw-path-provider.h
hotplug.h misc: Fix new typos in comments 2015-01-15 10:44:13 +03:00
hw.h
ide.h
irq.h
loader.h vl: move rom_load_all after machine init done 2015-07-07 11:03:16 +02:00
nmi.h nmi: Implement inject_nmi() for non-monitor context use 2015-06-11 17:45:50 +02:00
pcmcia.h
platform-bus.h
ptimer.h
qdev-core.h qdev: Un-deprecate qdev_init_nofail() 2015-06-19 19:14:32 +02:00
qdev-dma.h
qdev-properties.h qdev: fix 64 bit properties 2015-07-13 14:42:24 +03:00
qdev.h
sd.h
ssi.h
stream.h
sysbus.h sysbus: add irq_routing_notifier 2015-07-06 12:15:14 -06:00
usb.h usb: Remove unused functions 2015-04-30 16:05:48 +03:00