Re: [Qemu-devel] [PATCH v4 4/4] qemu-config: Add new -add-fd command line option

2012-10-19 Thread Corey Bryant
On 10/19/2012 07:05 AM, Kevin Wolf wrote: Am 18.10.2012 23:37, schrieb Corey Bryant: On 10/18/2012 04:43 PM, Eric Blake wrote: On 10/18/2012 01:19 PM, Corey Bryant wrote: This option can be used for passing file descriptors on the command line. It mirrors the existing add-fd QMP command w

Re: [Qemu-devel] [PATCH v4 4/4] qemu-config: Add new -add-fd command line option

2012-10-19 Thread Kevin Wolf
Am 18.10.2012 23:37, schrieb Corey Bryant: > > > On 10/18/2012 04:43 PM, Eric Blake wrote: >> On 10/18/2012 01:19 PM, Corey Bryant wrote: >>> This option can be used for passing file descriptors on the >>> command line. It mirrors the existing add-fd QMP command which >>> allows an fd to be pass

Re: [Qemu-devel] [PATCH v4 4/4] qemu-config: Add new -add-fd command line option

2012-10-18 Thread Eric Blake
On 10/18/2012 01:19 PM, Corey Bryant wrote: > This option can be used for passing file descriptors on the > command line. It mirrors the existing add-fd QMP command which > allows an fd to be passed to QEMU via SCM_RIGHTS and added to an > fd set. > > + > +static int cleanup_add_fd(QemuOpts *opts

Re: [Qemu-devel] [PATCH v4 4/4] qemu-config: Add new -add-fd command line option

2012-10-18 Thread Corey Bryant
On 10/18/2012 04:43 PM, Eric Blake wrote: On 10/18/2012 01:19 PM, Corey Bryant wrote: This option can be used for passing file descriptors on the command line. It mirrors the existing add-fd QMP command which allows an fd to be passed to QEMU via SCM_RIGHTS and added to an fd set. This can b

Re: [Qemu-devel] [PATCH v4 4/4] qemu-config: Add new -add-fd command line option

2012-10-18 Thread Eric Blake
On 10/18/2012 01:19 PM, Corey Bryant wrote: > This option can be used for passing file descriptors on the > command line. It mirrors the existing add-fd QMP command which > allows an fd to be passed to QEMU via SCM_RIGHTS and added to an > fd set. > > This can be combined with commands such as -d

[Qemu-devel] [PATCH v4 4/4] qemu-config: Add new -add-fd command line option

2012-10-18 Thread Corey Bryant
This option can be used for passing file descriptors on the command line. It mirrors the existing add-fd QMP command which allows an fd to be passed to QEMU via SCM_RIGHTS and added to an fd set. This can be combined with commands such as -drive to link file descriptors in an fd set to a drive: