From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOqTN-0006T6-5R for qemu-devel@nongnu.org; Thu, 18 Oct 2012 09:49:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOqTB-0005pt-PT for qemu-devel@nongnu.org; Thu, 18 Oct 2012 09:49:15 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:34810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOqTB-0005ph-Iu for qemu-devel@nongnu.org; Thu, 18 Oct 2012 09:49:05 -0400 Received: from /spool/local by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 18 Oct 2012 07:49:04 -0600 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 930AF19D8045 for ; Thu, 18 Oct 2012 07:49:02 -0600 (MDT) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q9IDmqth129512 for ; Thu, 18 Oct 2012 07:48:53 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q9IDmRuU004808 for ; Thu, 18 Oct 2012 07:48:27 -0600 Message-ID: <508008A9.6000504@linux.vnet.ibm.com> Date: Thu, 18 Oct 2012 09:48:25 -0400 From: Corey Bryant MIME-Version: 1.0 References: <1350411046-2453-1-git-send-email-coreyb@linux.vnet.ibm.com> <507E3103.1020202@redhat.com> In-Reply-To: <507E3103.1020202@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 4/4] qemu-config: Add new -add-fd command line option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, libvir-list@redhat.com, qemu-devel@nongnu.org On 10/17/2012 12:16 AM, Eric Blake wrote: > On 10/16/2012 12:10 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 -drive to link file >> descriptors in an fd set to a drive: >> >> qemu-kvm -add-fd fd=3,set=2,opaque="rdwr:/path/to/file" >> -add-fd fd=4,set=2,opaque="rdonly:/path/to/file" >> -drive file=/dev/fdset/2,index=0,media=disk >> >> This example adds dups of fds 4 and 5, and the accompanying opaque > > s/4 and 5/3 and 4/ Doh.. thanks. -- Regards, Corey Bryant