qemu-irix/hw
John Snow a395f3fa2f ahci: Fix byte count regression for ATAPI/PIO
This patch fixes a regression caused by commit
659142ecf7.
The problem occurs when we wish to return early
from the ahci_start_transfer function, but are now
updating the transferred byte count in the AHCI
command header via ahci_commit_buf.

This will cause problems in the Windows 8 installer.

Don't update the byte count in the command header
for the transmission of ATAPI packets: These commands
will distort the final byte count of the actual data
payload.

The call to ahci_commit_buf remains in the "out"
portion of the call in order to clean up the sglist.
The byte count is maintained by forcing size to be 0.

Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-11-14 09:20:34 +00:00
..
9pfs virtio-9p-proxy: improve error messages in connect_namedsocket() 2014-11-02 10:04:34 +03:00
acpi acpi: accurate overflow check 2014-11-13 16:13:28 +01:00
alpha
arm hw/core/loader: implement address translation in uimage loader 2014-11-03 00:59:10 +03:00
audio
block block: declare blockjobs and dataplane friends! 2014-11-03 11:41:49 +00:00
bt
char Several bugfixes for s390x: 2014-11-10 14:58:59 +00:00
core sysbus: Add new platform bus helper device 2014-11-04 23:26:14 +01:00
cpu icc_bus: fix typo ICC_BRIGDE -> ICC_BRIDGE 2014-11-03 19:51:56 +03:00
cris
display vmware-vga: use vmsvga_verify_rect in vmsvga_fill_rect 2014-10-29 12:01:30 +01:00
dma
gpio PPC: Add MPC8XXX gpio controller 2014-11-04 23:26:12 +01:00
i2c
i386 smbios: change 'ram_addr_t' variables to 'uint64_t' 2014-11-13 16:13:28 +01:00
ide ahci: Fix byte count regression for ATAPI/PIO 2014-11-14 09:20:34 +00:00
input
intc apic_common: migrate missing fields 2014-11-13 16:13:27 +01:00
ipack
isa
lm32
m68k hw/core/loader: implement address translation in uimage loader 2014-11-03 00:59:10 +03:00
mem
microblaze hw/core/loader: implement address translation in uimage loader 2014-11-03 00:59:10 +03:00
mips Block patches 2014-10-22 16:39:49 +01:00
misc ivshmem: use error_report 2014-10-31 17:02:22 +01:00
moxie
net
nvram spapr_nvram: Enable migration 2014-11-04 23:26:13 +01:00
openrisc hw/core/loader: implement address translation in uimage loader 2014-11-03 00:59:10 +03:00
pci hw/pci: fixed hotplug crash when using rombar=0 with devices having romfile 2014-11-02 13:44:12 +02:00
pci-bridge
pci-host
pcmcia hmp: Remove "info pcmcia" 2014-10-24 12:19:11 +01:00
ppc spapr: Allow dynamic creation of PHB 2014-11-04 23:26:15 +01:00
s390x virtio: link the rng backend through an alias property 2014-10-30 12:59:27 +00:00
scsi virtio-scsi: dataplane: suppress guest notification 2014-11-12 11:19:19 +01:00
sd
sh4
sparc
sparc64
ssi
timer
tpm
tricore target-tricore: check return value before using it 2014-11-02 10:04:34 +03:00
unicore32
usb usb-host: fix usb_host_speed_compat tyops 2014-11-12 15:27:23 +01:00
virtio vhost-user: fix mmap offset calculation 2014-11-03 18:32:48 +02:00
watchdog
xen
xenpv
xtensa hw/xtensa/xtfpga: treat uImage load address as virtual 2014-11-03 01:00:37 +03:00
Makefile.objs