From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kxi2p-0003Tn-Qe for qemu-devel@nongnu.org; Wed, 05 Nov 2008 08:03:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kxi2p-0003Tb-Ek for qemu-devel@nongnu.org; Wed, 05 Nov 2008 08:03:35 -0500 Received: from [199.232.76.173] (port=47098 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kxi2o-0003TY-UR for qemu-devel@nongnu.org; Wed, 05 Nov 2008 08:03:34 -0500 Received: from mx2.redhat.com ([66.187.237.31]:50852) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kxi2o-0003kv-SW for qemu-devel@nongnu.org; Wed, 05 Nov 2008 08:03:35 -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 mA5D3Xx0030269 for ; Wed, 5 Nov 2008 08:03:33 -0500 Message-ID: <491199A2.1040207@redhat.com> Date: Wed, 05 Nov 2008 15:03:30 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Live migration - exec: support to be reintroduced? References: <49113157.3090101@codemonkey.ws> <20081105100546.GA25523@redhat.com> In-Reply-To: <20081105100546.GA25523@redhat.com> 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: "Daniel P. Berrange" , qemu-devel@nongnu.org Daniel P. Berrange wrote: > We used it to implement save-to-file, exec'ing 'dd'. I'd rather prefer > that we had a more explicit 'migrate to a file' capability rather than > the hack of execing dd. > (qemu) acceptfd blah receives an file descriptor from the monitor using SCM_RIGHTS and assigns it to the tag 'blah' (qemu) migrate fd:blah migrates to the fd denominated by the tag 'blah' (qemu) closefd blah You can use literal numbers instead of tags to refer to file descriptors inherited from the environment: (qemu) migrate fd:17 -- error compiling committee.c: too many arguments to function