From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56575 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4znW-0001sp-Li for qemu-devel@nongnu.org; Wed, 30 Mar 2011 14:07:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4znU-0002Fv-2j for qemu-devel@nongnu.org; Wed, 30 Mar 2011 14:07:12 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:34030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4znT-0002Fr-V2 for qemu-devel@nongnu.org; Wed, 30 Mar 2011 14:07:12 -0400 Received: by ywl41 with SMTP id 41so724042ywl.4 for ; Wed, 30 Mar 2011 11:07:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110330165011.GF7766@redhat.com> References: <20110330165011.GF7766@redhat.com> Date: Wed, 30 Mar 2011 19:07:11 +0100 Message-ID: Subject: Re: [Qemu-devel] CD-ROM bug round-up From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: Anthony Liguori , Juan Quintela , Markus Armbruster , qemu-devel , Ryan Harper , Amit Shah On Wed, Mar 30, 2011 at 5:50 PM, Gleb Natapov wrote: > On Wed, Mar 30, 2011 at 05:40:40PM +0100, Stefan Hajnoczi wrote: >> =3D Anthony =3D >> >> Using 'change' or scripted commands without a delay between closing >> the BlockDriverState and opening the new CD-ROM. =A0The 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