From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MObc8-0000kD-NY for qemu-devel@nongnu.org; Wed, 08 Jul 2009 14:11:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MObc4-0000hr-36 for qemu-devel@nongnu.org; Wed, 08 Jul 2009 14:11:28 -0400 Received: from [199.232.76.173] (port=35303 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MObc3-0000hg-W3 for qemu-devel@nongnu.org; Wed, 08 Jul 2009 14:11:24 -0400 Received: from rv-out-0708.google.com ([209.85.198.244]:30494) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MObc3-0003N7-M7 for qemu-devel@nongnu.org; Wed, 08 Jul 2009 14:11:23 -0400 Received: by rv-out-0708.google.com with SMTP id b17so1566575rvf.22 for ; Wed, 08 Jul 2009 11:11:22 -0700 (PDT) Message-ID: <4A54E146.4070806@codemonkey.ws> Date: Wed, 08 Jul 2009 13:11:18 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/5] Add SCM_RIGHTS support to unix socket character devices References: <1247064963.3270.63.camel@blaa> <1247065048-15706-1-git-send-email-markmc@redhat.com> <1247065048-15706-2-git-send-email-markmc@redhat.com> <4A54BA4D.4040809@redhat.com> <1247069043.3270.83.camel@blaa> In-Reply-To: <1247069043.3270.83.camel@blaa> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark McLoughlin Cc: Avi Kivity , qemu-devel@nongnu.org Mark McLoughlin wrote: > It only makes sense to have one per getfd command and ... > It would be silly to pass many fds. fds are scarce resources and you don't want to get into a position where you're queuing fds. If a management tool wants to send an fd, it should issue the monitor command that needs the fd along with the fd via SCM_RIGHTS, and then wait for that command to complete before issuing another command that needs an fd. Regards, Anthony Liguori