qemu-e2k/hw/ide
Amit Shah 4b9b7092b4 atapi: Add 'medium ready' to 'medium not ready' transition on cd change
MMC-5 Table F.1 lists errors that can be thrown for the TEST_UNIT_READY
command.  Going from medium not ready to medium ready states is
communicated by throwing an error.

This adds the missing 'tray opened' event that we fail to report to
guests.  After doing this, older Linux guests properly revalidate a disc
on the change command.  HSM violation errors, which caused Linux guests
to do a soft-reset of the link, also go away:

ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
sr 1:0:0:0: CDB: Test Unit Ready: 00 00 00 00 00 00
ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
         res 01/60:00:00:00:00/00:00:00:00:00/a0 Emask 0x3 (HSM violation)
ata2.00: status: { ERR }
ata2: soft resetting link
ata2.00: configured for MWDMA2
ata2: EH complete

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Tested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-04-27 14:36:57 +02:00
..
ahci.c
ahci.h
cmd646.c
core.c atapi: Add 'medium ready' to 'medium not ready' transition on cd change 2011-04-27 14:36:57 +02:00
ich.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
internal.h atapi: GESN: implement 'media' subcommand 2011-04-13 12:20:42 +02:00
isa.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
macio.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
microdrive.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
mmio.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
pci.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
pci.h
piix.c isa-bus: Remove bogus IRQ sharing check 2011-02-21 15:46:53 +01:00
qdev.c
via.c isa-bus: Remove bogus IRQ sharing check 2011-02-21 15:46:53 +01:00