From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUkAE-0004qg-3f for qemu-devel@nongnu.org; Wed, 04 Feb 2009 10:59:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUkA9-0004q0-Lw for qemu-devel@nongnu.org; Wed, 04 Feb 2009 10:59:45 -0500 Received: from [199.232.76.173] (port=49391 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUkA9-0004px-E9 for qemu-devel@nongnu.org; Wed, 04 Feb 2009 10:59:41 -0500 Received: from mx2.redhat.com ([66.187.237.31]:49277) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUkA9-0003ez-4y for qemu-devel@nongnu.org; Wed, 04 Feb 2009 10:59:41 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n14Fxe4S011399 for ; Wed, 4 Feb 2009 10:59:40 -0500 Message-ID: <4989BB69.1090300@redhat.com> Date: Wed, 04 Feb 2009 17:59:37 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [patch 18/18] qemu: PCI device, disk and host network hot-add / hot-remove References: <20090204133303.113145633@localhost.localdomain> <20090204133924.976199377@localhost.localdomain> <20090204143843.GA26946@redhat.com> <4989B25F.6000100@codemonkey.ws> In-Reply-To: <4989B25F.6000100@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Marcelo Tosatti Anthony Liguori wrote: > > It doesn't support this today but additional patches to enable that > are certainly welcome. The best way would be a generic mechanism to > send a file descriptor to QEMU that could then be used anywhere fd= is > valid. For instance: > > (qemu) receivefd unix:foo.sock,server > fd=5 > (qemu) closefd 5 (qemu) receivefd myfd // qemu receives an fd over the monitor, and attaches it to the tag 'myfd' (qemu) closefd myfd // qemu closes the fd attached to tag 'myfd' Advantages: - no runtime handshaking with a new socket - work with names, not numbers you need to read off the monitor -- error compiling committee.c: too many arguments to function