]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
atapi: make change media detection for guests easier
authorPavel Hrdina <phrdina@redhat.com>
Mon, 26 Nov 2012 15:37:39 +0000 (16:37 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 30 Nov 2012 10:33:24 +0000 (11:33 +0100)
commit0c6f08b0b0d0c758789cdb7257a48e873598bdbb
tree25b8c64f381de7b1215530dfe951783c2f894868
parentd3067b020bdeb572f381c5be4420eedfd6af5884
atapi: make change media detection for guests easier

If you have a guest with a media in the optical drive and you change
it, the windows guest cannot properly recognize this media change.

Windows needs to detect sense "NOT_READY with ASC_MEDIUM_NOT_PRESENT"
before we send sense "UNIT_ATTENTION with ASC_MEDIUM_MAY_HAVE_CHANGED".

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/atapi.c
hw/ide/core.c