From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiuyo-0005aa-Hi for qemu-devel@nongnu.org; Wed, 12 Dec 2012 17:40:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tiuyn-00007E-A0 for qemu-devel@nongnu.org; Wed, 12 Dec 2012 17:40:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:27766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiuyn-00006x-3J for qemu-devel@nongnu.org; Wed, 12 Dec 2012 17:40:41 -0500 Date: Wed, 12 Dec 2012 20:39:19 -0200 From: Marcelo Tosatti Message-ID: <20121212223919.GA3190@amt.cnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] define qemukvm-1.2 machine type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Anthony Liguori , Cole Robinson 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", + .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);