From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrCE4-0002Ov-DZ for qemu-devel@nongnu.org; Fri, 04 Jan 2013 13:42:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrCE3-0001c7-IV for qemu-devel@nongnu.org; Fri, 04 Jan 2013 13:42:40 -0500 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:62324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrCE3-0001bw-CA for qemu-devel@nongnu.org; Fri, 04 Jan 2013 13:42:39 -0500 Received: by mail-wg0-f42.google.com with SMTP id dr1so367244wgb.3 for ; Fri, 04 Jan 2013 10:42:37 -0800 (PST) Sender: Paolo Bonzini Message-ID: <50E72299.9030002@redhat.com> Date: Fri, 04 Jan 2013 19:42:33 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <13C5521D-B7F1-4A0B-B0DC-BD839C29106A@dlhnet.de> In-Reply-To: <13C5521D-B7F1-4A0B-B0DC-BD839C29106A@dlhnet.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU CDROM tray-open and locked logic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: "qemu-devel@nongnu.org" Il 04/01/2013 11:26, Peter Lieven ha scritto: > Hi, > > i have observed the following with qemu-kvm-1.2.0 which I think is not right: > > a) if the CDROM is locked and I sent a eject command I get the error that the > CDROM is locked, but its ejected nevertheless. That's because the CD-ROM sends an "eject requested" event, and udev does the unlock & eject itself. > b) if I eject the CDROM in the OS I see tray-open=1 and locked=1. In the > tray-open=1 state the CDROM can`t be locked, can it? A "real" CD-ROM drive could have the tray open and not responding to the button. Table 330 of MMC6 matches "Operation Lock, current prevent state Locked, No media present" to "No Error, media insertion is not permitted". I cannot check right now what happens later and whether QEMU's behavior makes sense. Paolo