qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	Juan Quintela <quintela@redhat.com>,
	Markus Armbruster <armbru@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	Ryan Harper <ryanh@us.ibm.com>, Amit Shah <amit.shah@redhat.com>
Subject: Re: [Qemu-devel] CD-ROM bug round-up
Date: Wed, 30 Mar 2011 19:07:11 +0100	[thread overview]
Message-ID: <AANLkTi=cVrNtCe_aMN-5Y_u1GyxtHP9b_vedODC79RBq@mail.gmail.com> (raw)
In-Reply-To: <20110330165011.GF7766@redhat.com>

On Wed, Mar 30, 2011 at 5:50 PM, Gleb Natapov <gleb@redhat.com> wrote:
> On Wed, Mar 30, 2011 at 05:40:40PM +0100, Stefan Hajnoczi wrote:
>> = Anthony =
>>
>> Using 'change' or scripted commands without a delay between closing
>> the BlockDriverState and opening the new CD-ROM.  The guest does not
>> have a chance to poll the drive and determine a medium present ->
>> medium not present transition followed by a medium not present ->
>> medium present transition.
>>
>> A fix for this does not exist yet and might be tricky since we need to
>> delay or wait for the guest to poll once before opening the new
>> CD-ROM.
>>
> This sounds familiar and should have been fixed by commit
> 93c8cfd9e67a62711b86f4c93747566885eb7928

Excellent, thanks for pointing this out.  We need to figure out
whether this mechanism is insufficient for some guests.

On a Windows-related note, I've found that Windows 2003 Server sends
START STOP UNIT to eject the medium without unlocking the tray first.
When the CD-ROM is passed through to a Linux host CD-ROM drive the
eject ioctl fails if the tray is locked.  I haven't investigated this
more yet.

Stefan

  reply	other threads:[~2011-03-30 18:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-30 16:40 [Qemu-devel] CD-ROM bug round-up Stefan Hajnoczi
2011-03-30 16:50 ` Gleb Natapov
2011-03-30 18:07   ` Stefan Hajnoczi [this message]
2011-03-31  9:53 ` [Qemu-devel] " Amit Shah
2011-03-31 14:03   ` Stefan Hajnoczi
2011-03-31 19:44   ` [Qemu-devel] [RFC PATCH 1/3] ide: Move GET_EVENT_STATUS_NOTIFICATION command handling to its own function Amit Shah
2011-03-31 19:44     ` [Qemu-devel] [RFC PATCH 2/3] atapi: implement GET_EVENT_STATUS_NOTIFICATION command Amit Shah
2011-03-31 19:44     ` [Qemu-devel] [RFC PATCH 3/3] atapi: Allow GET_EVENT_STATUS_NOTIFICATION and TEST_UNIT_READY after media change Amit Shah
2011-03-31  9:56 ` [Qemu-devel] CD-ROM bug round-up Markus Armbruster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=cVrNtCe_aMN-5Y_u1GyxtHP9b_vedODC79RBq@mail.gmail.com' \
    --to=stefanha@gmail.com \
    --cc=aliguori@us.ibm.com \
    --cc=amit.shah@redhat.com \
    --cc=armbru@redhat.com \
    --cc=gleb@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=ryanh@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).