From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpwde-0006Gh-Qq for qemu-devel@nongnu.org; Wed, 25 Jan 2012 01:47:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rpwdd-0006Bj-TG for qemu-devel@nongnu.org; Wed, 25 Jan 2012 01:47:22 -0500 Received: from mail-tul01m020-f173.google.com ([209.85.214.173]:40151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpwdd-0006BX-Q0 for qemu-devel@nongnu.org; Wed, 25 Jan 2012 01:47:21 -0500 Received: by obbup16 with SMTP id up16so6124117obb.4 for ; Tue, 24 Jan 2012 22:47:19 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4F1DA1D5.1010600@redhat.com> References: <1327140203-3165-1-git-send-email-ronniesahlberg@gmail.com> <1327140203-3165-2-git-send-email-ronniesahlberg@gmail.com> <4F1DA1D5.1010600@redhat.com> Date: Wed, 25 Jan 2012 17:47:19 +1100 Message-ID: From: ronnie sahlberg Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, qemu-devel@nongnu.org On Tue, Jan 24, 2012 at 5:07 AM, Eric Blake wrote: > > Can -readconfig support reading from an inherited fd, rather than only > taking a file name that qemu has to open()? > ... > > Can you give an actual command line that uses -readconfig, as part of > your example? > Thanks for the review Eric. I will update the patch with an example using -readconfig and fix the typo. Yes, -readconfig can read from a pipe() and it can also read from an arbitrary file descriptor. Reading from a pipe : cat iscsi.conf | ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -display vnc=127.0.0.1:0 -drive file=iscsi://127.0.0.1/iqn.ronnie.test/1 -readconfig /proc/self/fd/0 Read from an arbitrary filedescriptor inherited from the parent process : 9