]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commit
Send unit_attention on cd-rom not_ready to ready transition
authorIan Jackson <iwj@mariner.uk.xensource.com>
Mon, 19 May 2008 15:21:52 +0000 (16:21 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 19 May 2008 15:21:52 +0000 (16:21 +0100)
commit6a163871b7b843fe41f8bcc452785b90e9010852
treef70aa2efe275286a19c3150ae735838788ab84fb
parenta1fa7745c08f26aee821df61f0dca2dcb48abbb7
Send unit_attention on cd-rom not_ready to ready transition

Patch sends a UNIT_ATTENTION(6), MEDIUM_MAY_HAVE_CHANGED(0x28) sense
when cdrom transitions from not ready to ready.

I used the following documentation:
 ATA Packet interface for CD-ROMS, SFF8020i.pdf. See state diagram Figure
 12, page 82 and Table 44 -recommended Sense Key, ASC

With patch in place HVM win2008 server guest sees the CD/DVD contents
have changed when the media is switched.

Signed-off-by: Pat Campbell <plc@novell.com>
hw/ide.c