From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWaL8-0002pD-9I for qemu-devel@nongnu.org; Mon, 21 May 2012 17:40:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWaL6-00038u-Eu for qemu-devel@nongnu.org; Mon, 21 May 2012 17:40:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWaL6-00038e-5x for qemu-devel@nongnu.org; Mon, 21 May 2012 17:40:28 -0400 Message-ID: <4FBAB641.20109@redhat.com> Date: Mon, 21 May 2012 15:40:17 -0600 From: Eric Blake MIME-Version: 1.0 References: <1337631598-30639-1-git-send-email-coreyb@linux.vnet.ibm.com> <1337631598-30639-2-git-send-email-coreyb@linux.vnet.ibm.com> In-Reply-To: <1337631598-30639-2-git-send-email-coreyb@linux.vnet.ibm.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig3450326181E921B169B232AC" Subject: Re: [Qemu-devel] [RFC PATCH 1/4] qemu-options: Add -filefd command line option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Corey Bryant Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanha@linux.vnet.ibm.com, libvir-list@redhat.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3450326181E921B169B232AC Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/21/2012 02:19 PM, Corey Bryant wrote: > This patch provides support for the -filefd command line option. > This option will allow passing of a filename and its corresponding > file descriptor to QEMU at exec time. >=20 > Signed-off-by: Corey Bryant > +DEF("filefd", HAS_ARG, QEMU_OPTION_filefd, > + "-filefd file=3D,fd=3D\n" I take it that if filename contains ',', then we have to escape it on the command line? Is it worth passing fd first and file second by default, as a possible way to avoid the need for escaping, or does the option parser not care about ordering? --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig3450326181E921B169B232AC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPurZBAAoJEKeha0olJ0NqH9kIAJTrexSyl5HgVs0IHL+xEUB4 bSfvl6nwFtFkgSTR6kI3uD1FBrqr2mYpgQi6nM1bpfL960DU1WdklURxAU+lHUXS /7siISjNEmwGIeFo4SlSfOnEvMqr/LUa2IgOVX6wiv+zqF6cOVHk4OG+Wz0mdPC+ 47e/zkh1Y2sEzLr+4nRVZdAwEpFWl0watsxyPoxD5LMZ6K98cgdTyr1qpPjBe7RR IKwiuuYeLly7aexh2zEsYSRJXjVsN8d2RL3xbQmwv4TUbkNdxmfueFcjUwC/Fi9O 9RK2h+oNnA+PgFkS/1sBNbhnm8EzQzIFWA2XtcGiDsiJOtloa1mcA1BSY8ymjo8= =+MHC -----END PGP SIGNATURE----- --------------enig3450326181E921B169B232AC--