Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCZge-0005V8-2x for qemu-devel@nongnu.org; Mon, 23 Nov 2009 09:14:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCZgZ-0005Q7-2Y for qemu-devel@nongnu.org; Mon, 23 Nov 2009 09:14:39 -0500 Received: from [199.232.76.173] (port=50497 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCZgY-0005Q4-Ov for qemu-devel@nongnu.org; Mon, 23 Nov 2009 09:14:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:29552) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCZgY-0007IK-Fc for qemu-devel@nongnu.org; Mon, 23 Nov 2009 09:14:34 -0500 From: Juan Quintela In-Reply-To: <4B0A899F.2090805@codemonkey.ws> (Anthony Liguori's message of "Mon, 23 Nov 2009 07:09:51 -0600") References: <4B0952C9.9010803@redhat.com> <4B0A899F.2090805@codemonkey.ws> Date: Mon, 23 Nov 2009 15:13:59 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: dlaor@redhat.com, qemu-devel Anthony Liguori wrote: > Juan Quintela wrote: >> Dor Laor wrote: >>> >> >> My idea here is that we need to have further use of machine >> descriptions, once that is done, we need something like a new property >> for qdev (version?). Once there, each device could do: >> - if version != last_version -> die (what it happens now) >> - do someting sensible, not use the "new" features not existing on that >> version >> - edit the savevm format in an easy way. >> > > But this would only kick in when using pc-0.11 or something, right? Yeap. At this point, pc-0.10 is just: static QEMUMachine pc_machine_v0_10 = { .name = "pc-0.10", .desc = "Standard PC, qemu 0.10", .init = pc_init_pci, .max_cpus = 255, .compat_props = (CompatProperty[]) { { .driver = "virtio-blk-pci", .property = "class", .value = stringify(PCI_CLASS_STORAGE_OTHER), },{ .driver = "virtio-console-pci", .property = "class", .value = stringify(PCI_CLASS_DISPLAY_OTHER), },{ .driver = "virtio-net-pci", .property = "vectors", .value = stringify(0), },{ .driver = "virtio-blk-pci", .property = "vectors", .value = stringify(0), }, { /* end of list */ } }, But to really make it work, we need to take a list of each savevm format change and put it here. Notice that several changes are needed: - savevm infrastructure save functions don't know about version id - devices don't know to "behave" as other version - other things that I have probably missed Later, Juan.