From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MO2bL-0004TQ-08 for qemu-devel@nongnu.org; Tue, 07 Jul 2009 00:48:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MO2bG-0004TE-E3 for qemu-devel@nongnu.org; Tue, 07 Jul 2009 00:48:18 -0400 Received: from [199.232.76.173] (port=36406 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MO2bG-0004TB-7N for qemu-devel@nongnu.org; Tue, 07 Jul 2009 00:48:14 -0400 Received: from mx2.redhat.com ([66.187.237.31]:58060) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MO2bF-0001uz-Mz for qemu-devel@nongnu.org; Tue, 07 Jul 2009 00:48:13 -0400 Message-ID: <4A52D37D.3020703@redhat.com> Date: Tue, 07 Jul 2009 07:47:57 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH 0/4] Machine config files References: <4A3269C3.3050307@redhat.com> <4A327E2C.1060207@siemens.com> <20090706124928.GB11998@redhat.com> <4A51FF7B.4000602@redhat.com> <20090706135616.GA12141@redhat.com> <20090706140129.GB12141@redhat.com> <4A520CC6.7060802@redhat.com> <4A52226C.8060606@redhat.com> <4A5225D6.8030102@redhat.com> <4A52284C.9080604@redhat.com> <20090706164429.GD12399@redhat.com> In-Reply-To: <20090706164429.GD12399@redhat.com> 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: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, Jan Kiszka , Gerd Hoffmann , Markus Armbruster On 07/06/2009 07:44 PM, Michael S. Tsirkin wrote: >> Slight change: instead of serializing into a tree, have a qdev callback >> which generates an add event that can be sent over the wire. While >> migrating, additional hotplug simply call the same callback and the >> hotplug is migrated in real time. >> > > IOW, each device just needs to record where it is in the tree. > There is no easy way to do that. Instead, each bus records its component devices. > The tree can be then reconstructed by each driver > finding the parent bus and attaching the device to it. > With a hierarhical save this is much more natural. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.