From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjG7y-0000OE-UG for qemu-devel@nongnu.org; Thu, 13 Dec 2012 16:15:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjG7x-0004dE-Rh for qemu-devel@nongnu.org; Thu, 13 Dec 2012 16:15:34 -0500 Received: from e7.ny.us.ibm.com ([32.97.182.137]:45514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjG7x-0004cs-O1 for qemu-devel@nongnu.org; Thu, 13 Dec 2012 16:15:33 -0500 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Dec 2012 16:15:32 -0500 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 80E4B38C803F for ; Thu, 13 Dec 2012 16:15:30 -0500 (EST) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qBDLFSEB283028 for ; Thu, 13 Dec 2012 16:15:29 -0500 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qBDLFSvl002076 for ; Thu, 13 Dec 2012 14:15:28 -0700 From: Anthony Liguori In-Reply-To: <20121212223919.GA3190@amt.cnet> References: <20121212223919.GA3190@amt.cnet> Date: Thu, 13 Dec 2012 15:15:26 -0600 Message-ID: <87sj79irgx.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] define qemukvm-1.2 machine type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti , qemu-devel@nongnu.org Cc: Paolo Bonzini , Cole Robinson Marcelo Tosatti writes: > To allow migration from qemu-kvm-1.2, where cirrus device has 16 megabytes > of RAM. > > Signed-off-by: Marcelo Tosatti > > diff --git a/hw/pc_piix.c b/hw/pc_piix.c > index 19e342a..ead4b6b 100644 > --- a/hw/pc_piix.c > +++ b/hw/pc_piix.c > @@ -347,6 +347,26 @@ static QEMUMachine pc_machine_v1_2 = { > }, > }; > > +#define QEMUKVMPC_COMPAT_1_2 \ > + {\ > + .driver = "cirrus-vga",\ > + .property = "vgamem_mb",\ > + .value = "16",\ > + } > + > +static QEMUMachine qemukvmpc_machine_v1_2 = { > + .name = "qemukvm-pc-1.2", > + .alias = "pc", This shouldn't alias pc... I think what you need mean to do is alias pc-1.2 but in order to do that, we need some sort of way to indicate that 'pc-1.2' should behave like qemu-kvm vs. qemu-system-x86_64. Regards, Anthony Liguori > + .desc = "Standard PC", > + .init = pc_init_pci, > + .max_cpus = 255, > + .compat_props = (GlobalProperty[]) { > + QEMUKVMPC_COMPAT_1_2, > + PC_COMPAT_1_2, > + { /* end of list */ } > + }, > +}; > + > #define PC_COMPAT_1_1 \ > PC_COMPAT_1_2,\ > {\ > @@ -645,6 +665,7 @@ static QEMUMachine xenfv_machine = { > > static void pc_machine_init(void) > { > + qemu_register_machine(&qemukvmpc_machine_v1_2); > qemu_register_machine(&pc_machine_v1_4); > qemu_register_machine(&pc_machine_v1_3); > qemu_register_machine(&pc_machine_v1_2);