qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5] Fix CD-ROM door with SCSI passthrough
@ 2012-02-08 17:37 Paolo Bonzini
  2012-02-08 17:37 ` [Qemu-devel] [PATCH 1/5] raw-posix: always prefer specific devices to hdev Paolo Bonzini
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Paolo Bonzini @ 2012-02-08 17:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: amit.shah, armbru

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-02-10 15:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-08 17:37 [Qemu-devel] [PATCH 0/5] Fix CD-ROM door with SCSI passthrough Paolo Bonzini
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

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).