diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-04-18 17:15:46 +0530 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-04-27 14:36:57 +0200 |
commit | 4b9b7092b4cbef084138a446b8247ba89fd474f4 (patch) | |
tree | 08641f8efdf1c70afa437397357d5758c7720e78 /block-migration.c | |
parent | 9a9d9dba3ea45b2bd1539db021ff7c2d7bfc2a98 (diff) |
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>
Diffstat (limited to 'block-migration.c')
0 files changed, 0 insertions, 0 deletions