From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj4GG-0004vQ-2q for qemu-devel@nongnu.org; Thu, 13 Dec 2012 03:35:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tj4GE-0007ja-UB for qemu-devel@nongnu.org; Thu, 13 Dec 2012 03:35:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj4GE-0007iA-Me for qemu-devel@nongnu.org; Thu, 13 Dec 2012 03:35:18 -0500 Message-ID: <50C99341.8050205@redhat.com> Date: Thu, 13 Dec 2012 09:35:13 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20121212223919.GA3190@amt.cnet> In-Reply-To: <20121212223919.GA3190@amt.cnet> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 Cc: Anthony Liguori , qemu-devel@nongnu.org, Cole Robinson Il 12/12/2012 23:39, Marcelo Tosatti ha scritto: > > To allow migration from qemu-kvm-1.2, where cirrus device has 16 megabytes > of RAM. > > Signed-off-by: Marcelo Tosatti A similar patch would be needed for all machine types though, no? I think distros that used to ship qemu-kvm should just change the default just like for the acpi_piix4.c change. Paolo > 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", > + .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); >