From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: amit.shah@redhat.com, armbru@redhat.com
Subject: [Qemu-devel] [PATCH 0/5] Fix CD-ROM door with SCSI passthrough
Date: Wed, 8 Feb 2012 18:37:31 +0100 [thread overview]
Message-ID: <1328722656-22856-1-git-send-email-pbonzini@redhat.com> (raw)
This series makes it possible to use CD drives reliably with scsi-block.
IDE and scsi-disk require more work, because the eject button is not
usable.
CD drives are unmounted at VM start and opened exclusively. The locking
state is saved and restored for extra kindness. However, drives are not
remounted because they are unlikely to be needed in the host (they were
CDs for a guest after all), and repeated close/open done by the block
layer would turn into unreliable mount/unmount requests to udisks
(unmounts after the first would return EBUSY).
Paolo Bonzini (5):
raw-posix: always prefer specific devices to hdev
raw-posix: put Linux fd fields into a union
raw-posix: keep complete control of door locking if possible
configure: probe for dbus
raw-posix: unmount CD-ROM filesystem via udisks
Makefile.objs | 3 +
block.c | 7 ++
block/raw-posix-udisks.c | 105 ++++++++++++++++++++++++++++++++
block/raw-posix-udisks.h | 39 ++++++++++++
block/raw-posix.c | 150 +++++++++++++++++++++++++++++++++++-----------
configure | 39 ++++++++++++
6 files changed, 308 insertions(+), 35 deletions(-)
create mode 100644 block/raw-posix-udisks.c
create mode 100644 block/raw-posix-udisks.h
--
1.7.7.6
next reply other threads:[~2012-02-08 17:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-08 17:37 Paolo Bonzini [this message]
2012-02-08 17:37 ` [Qemu-devel] [PATCH 1/5] raw-posix: always prefer specific devices to hdev Paolo Bonzini
2012-02-10 12:49 ` Markus Armbruster
2012-02-08 17:37 ` [Qemu-devel] [PATCH 2/5] raw-posix: put Linux fd fields into a union Paolo Bonzini
2012-02-08 17:37 ` [Qemu-devel] [PATCH 3/5] raw-posix: keep complete control of door locking if possible Paolo Bonzini
2012-02-10 12:49 ` Markus Armbruster
2012-02-10 14:00 ` Paolo Bonzini
2012-02-10 14:56 ` Markus Armbruster
2012-02-10 15:19 ` Paolo Bonzini
2012-02-08 17:37 ` [Qemu-devel] [PATCH 4/5] configure: probe for dbus Paolo Bonzini
2012-02-08 17:37 ` [Qemu-devel] [PATCH 5/5] raw-posix: unmount CD-ROM filesystem via udisks Paolo Bonzini
2012-02-10 12:51 ` Markus Armbruster
2012-02-10 14:20 ` Paolo Bonzini
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=1328722656-22856-1-git-send-email-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=amit.shah@redhat.com \
--cc=armbru@redhat.com \
--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).