qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] command line fd passing using fd sets
@ 2012-10-05 18:07 Corey Bryant
  2012-10-05 18:07 ` [Qemu-devel] [PATCH 1/4] monitor: Less restrictive fd matching for " Corey Bryant
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Corey Bryant @ 2012-10-05 18:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: libvir-list, kwolf, Corey Bryant, eblake

This series adds command line file descriptor passing support
to the -drive option.  This is a follow-on to the existing
QMP fd passing support provided in the following patch series:
comments.gmane.org/gmane.comp.emulators.qemu/165463

An example of using the new -drive fd and opaque options:
qemu-kvm -drive fd=24,opaque="rdwr:/path/file",index=0,media=disk

When an fd, and optionally opaque, are passed with -drive, they
are added to an automatically generated fd set.  The file name
is also generated in the form of "/dev/fdset/nnn", where nnn is
the fd set ID.  qemu_open() already knows how to handle a
filename of this format.  qemu_open() searches the corresponding
fd set for an fd and when it finds a match, QEMU goes on to use a
dup of that fd just like it would have used an fd that it opened
itself.

Corey Bryant (4):
  monitor: Less restrictive fd matching for fd sets
  monitor: Enable adding an inherited fd to an fd set
  qemu-config: Add -drive fd and opaque options
  blockdev: Process -drive fd and opaque options

 blockdev.c      |  40 +++++++++++++++++-
 monitor.c       | 128 ++++++++++++++++++++++++++++++++------------------------
 monitor.h       |   3 ++
 qemu-config.c   |   8 ++++
 qemu-options.hx |  15 ++++++-
 5 files changed, 135 insertions(+), 59 deletions(-)

-- 
1.7.11.4

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

end of thread, other threads:[~2012-10-05 18:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-05 18:07 [Qemu-devel] [PATCH 0/4] command line fd passing using fd sets Corey Bryant
2012-10-05 18:07 ` [Qemu-devel] [PATCH 1/4] monitor: Less restrictive fd matching for " Corey Bryant
2012-10-05 18:35   ` Eric Blake
2012-10-05 18:50     ` Corey Bryant
2012-10-05 18:07 ` [Qemu-devel] [PATCH 2/4] monitor: Enable adding an inherited fd to an fd set Corey Bryant
2012-10-05 18:07 ` [Qemu-devel] [PATCH 3/4] qemu-config: Add -drive fd and opaque options Corey Bryant
2012-10-05 18:25   ` Blue Swirl
2012-10-05 18:30     ` Eric Blake
2012-10-05 18:44       ` Corey Bryant
2012-10-05 18:51         ` Eric Blake
2012-10-05 18:57           ` Corey Bryant
2012-10-05 18:48     ` Corey Bryant
2012-10-05 18:07 ` [Qemu-devel] [PATCH 4/4] blockdev: Process " Corey Bryant
2012-10-05 18:26 ` [Qemu-devel] [PATCH 0/4] command line fd passing using fd sets Eric Blake
2012-10-05 18:37   ` Corey Bryant

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