From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Lieven <pl@dlhnet.de>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] QEMU CDROM tray-open and locked logic
Date: Fri, 04 Jan 2013 19:42:33 +0100 [thread overview]
Message-ID: <50E72299.9030002@redhat.com> (raw)
In-Reply-To: <13C5521D-B7F1-4A0B-B0DC-BD839C29106A@dlhnet.de>
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
next prev parent reply other threads:[~2013-01-04 18:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 10:26 [Qemu-devel] QEMU CDROM tray-open and locked logic Peter Lieven
2013-01-04 18:42 ` Paolo Bonzini [this message]
2013-01-07 7:19 ` Peter Lieven
2013-01-07 12:36 ` Markus Armbruster
2013-01-08 8:55 ` Peter Lieven
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=50E72299.9030002@redhat.com \
--to=pbonzini@redhat.com \
--cc=pl@dlhnet.de \
--cc=qemu-devel@nongnu.org \
/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).