qemu-e2k/hw/ide
John Snow d735b620b5 ide/atapi: Mark non-data commands as complete
When the command completion code in IDE and AHCI
was unified to put all command completion inside
of a callback, "cmd_done," we neglected to
ensure that all AHCI/ATAPI command paths would
eventually register as finished. for the PCI
interface to IDE this is not a problem because
cmd_done is a nop, but the AHCI implementation
needs to send a D2H_REG_FIS and interrupt back
to the guest to inform of completion.

This patch adds calls to ide_stop_transfer,
which calls ide_cmd_done, inside of
ide_atapi_cmd_ok and ide_atapi_cmd_error.

This fixes regressions observed by trying to boot QEMU
with a Fedora 20 live CD under Q35/AHCI, which uses
ATAPI command 0x00, which is a status check that may
cause a hang because we never complete, and ATAPI
command 0x56, which is unsupported by our current
implementation and results in an error that we never
report back to the guest.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-09-22 11:38:44 +01:00
..
Makefile.objs hw: make all of hw/ide/ configurable via default-configs/ 2013-04-08 18:13:12 +02:00
ahci.c block: Make the block accounting functions operate on BlockAcctStats 2014-09-10 10:41:29 +02:00
ahci.h ahci: remove duplicate PORT_IRQ_* constants 2014-08-15 18:03:12 +01:00
atapi.c ide/atapi: Mark non-data commands as complete 2014-09-22 11:38:44 +01:00
cmd646.c SCSI changes that enable sending vendor-specific commands via virtio-scsi. 2014-08-19 13:00:57 +01:00
core.c block: Make the block accounting functions operate on BlockAcctStats 2014-09-10 10:41:29 +02:00
ich.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
internal.h ide: make all commands go through cmd_done 2014-08-15 18:03:12 +01:00
isa.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
macio.c block: Make the block accounting functions operate on BlockAcctStats 2014-09-10 10:41:29 +02:00
microdrive.c block: Drop some superfluous casts from void * 2014-08-20 11:51:28 +02:00
mmio.c IDE: MMIO IDE device control should be little endian 2014-09-10 10:41:29 +02:00
pci.c ide: move retry constants out of BM_STATUS_* namespace 2014-08-15 18:03:12 +01:00
pci.h ide: move BM_STATUS bits to pci.[ch] 2014-08-15 18:03:12 +01:00
piix.c xen: Drop redundant bdrv_close() from pci_piix3_xen_ide_unplug() 2014-09-10 10:41:29 +02:00
qdev.c ide: Fix bootindex for bus_id > 9 2014-08-29 10:46:57 +01:00
via.c memory: remove memory_region_destroy 2014-08-18 12:06:21 +02:00