ide/atapi scsi-disk: Make monitor eject -f, then change work
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Sep 2011 16:59:00 +0000 (18:59 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Sep 2011 13:17:22 +0000 (15:17 +0200)
commit96978ec7e5d7cd03d040271d45cbcb5a0db08baa
tree40653ee590c807635b36dcfb895471ef188b1b8f
parent19f61ce5effc0366fe3df13ee88c6a027ec7d6fb
ide/atapi scsi-disk: Make monitor eject -f, then change work

change fails while the tray is locked by the guest.  eject -f forces
it open and removes any media.  Unfortunately, the tray closes again
instantly.  Since the lock remains as it is, there is no way to insert
another medium unless the guest voluntarily unlocks.

Fix by leaving the tray open after monitor eject.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c
hw/ide/core.c
hw/scsi-disk.c