qemu-irix/hw
Paolo Bonzini 84f94a9a82 scsi-disk: correctly implement WRITE SAME
Fetch the data to be written from the input buffer.  If it is all zeroes,
we can use the write_zeroes call (possibly with the new MAY_UNMAP flag).
Otherwise, do as many write cycles as needed, writing 512k at a time.

Strictly speaking, this is still incorrect because a zero cluster should
only be written if the MAY_UNMAP flag is set.  But this is a bug in qcow2
and the other formats, not in the SCSI code.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-12-03 15:26:49 +01:00
..
9pfs
acpi bswap.h: Remove le16_to_cpupu() 2013-11-05 19:57:46 -08:00
alpha
arm
audio
block bswap.h: Remove cpu_to_be32wu() 2013-11-05 19:57:47 -08:00
bt
char spapr: add vio-bus devices to categories 2013-11-08 04:33:18 +01:00
core qdev-properties-system.c: Allow vlan or netdev for -device, not both 2013-11-22 09:47:00 +01:00
cpu arm11mpcore: Split off RealView MPCore 2013-11-05 17:47:30 +01:00
cris
display sun4m: Add FCode ROM for TCX framebuffer 2013-11-21 17:38:52 +01:00
dma
gpio
i2c
i386 acpi-build: fix support for glib < 2.22 2013-11-25 20:35:08 -08:00
ide bswap.h: Remove cpu_to_be16wu() 2013-11-05 19:57:47 -08:00
input
intc realview_gic: Prepare for QOM embedding 2013-11-05 17:47:30 +01:00
isa
lm32
m68k
microblaze
mips mips jazz: do not raise data bus exception when accessing invalid addresses 2013-11-21 17:39:22 +01:00
misc vfio-pci: Fix multifunction=on 2013-11-21 17:39:04 +01:00
moxie
net Revert "e1000/rtl8139: update HMP NIC when every bit is written" 2013-11-21 16:28:27 +02:00
nvram spapr: add vio-bus devices to categories 2013-11-08 04:33:18 +01:00
openrisc openrisc-timer: Reduce overhead, Separate clock update functions 2013-11-20 21:46:45 +08:00
pci pci: unregister vmstate_pcibus on unplug 2013-11-21 16:25:08 +02:00
pci-bridge
pci-host Fix pc migration from qemu <= 1.5 2013-11-10 12:08:37 +02:00
pcmcia pcmcia/pxa2xx: QOM'ify PXA2xxPCMCIAState 2013-11-05 18:06:52 +01:00
ppc PPC: BookE: Make FIT/WDT timers at best millisecond grained 2013-11-25 20:35:12 -08:00
s390x s390x: fix flat file load on 32 bit systems 2013-11-21 07:55:10 -08:00
scsi scsi-disk: correctly implement WRITE SAME 2013-12-03 15:26:49 +01:00
sd
sh4
sparc sun4m: Add FCode ROM for TCX framebuffer 2013-11-21 17:38:52 +01:00
sparc64
ssi
timer rtc: remove dead SQW IRQ code 2013-11-05 20:04:03 -08:00
tpm
unicore32
usb usb: drop unused USBNetState.inpkt field 2013-11-13 15:48:38 +04:00
virtio virtio-rng: add check of period 2013-11-21 07:55:26 -08:00
watchdog
xen qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
xtensa
Makefile.objs pcmcia: QOM'ify PCMCIACardState and MicroDriveState 2013-11-05 18:06:52 +01:00