Received: from eggs.gnu.org ([2001:4830:134:3::10]:58072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDIRG-0006j2-Ir for qemu-devel@nongnu.org; Thu, 09 Jul 2015 16:28:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDIRB-0007Ed-Jq for qemu-devel@nongnu.org; Thu, 09 Jul 2015 16:28:58 -0400 Received: from e17.ny.us.ibm.com ([129.33.205.207]:59149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDIRB-0007Ds-EM for qemu-devel@nongnu.org; Thu, 09 Jul 2015 16:28:53 -0400 Received: from /spool/local by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 9 Jul 2015 16:28:51 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 365BA6E803C for ; Thu, 9 Jul 2015 16:20:35 -0400 (EDT) Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t69KSmKV38076618 for ; Thu, 9 Jul 2015 20:28:48 GMT Received: from d01av05.pok.ibm.com (localhost [127.0.0.1]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t69KSlr3032583 for ; Thu, 9 Jul 2015 16:28:48 -0400 From: Michael Roth Date: Thu, 9 Jul 2015 15:28:22 -0500 Message-Id: <1436473702-8917-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH for-2.4] pc: fix machine options for pc-i440fx-2.3 and below List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: ehabkost@redhat.com, mst@redhat.com Commit fddd179 introduced a mechanical change that initialized default machine options using functions instead of macros. Prior to the change options for pc-i440fx-2.3 were defined as: #define PC_I440FX_MACHINE_OPTIONS \ PC_DEFAULT_MACHINE_OPTIONS, \ .family = "pc_piix", \ .desc = "Standard PC (i440FX + PIIX, 1996)", \ .hot_add_cpu = pc_hot_add_cpu #define PC_I440FX_2_4_MACHINE_OPTIONS \ PC_I440FX_MACHINE_OPTIONS, \ .default_machine_opts = "firmware=bios-256k.bin", \ .default_display = "std", \ .alias = "pc", \ .is_default = 1 #define PC_I440FX_2_3_MACHINE_OPTIONS \ PC_I440FX_2_4_MACHINE_OPTIONS, \ .alias = NULL, \ .is_default = 0 However, as part of the conversion, the 2.3 definition was changed to inherit directly from PC_I440FX_MACHINE_OPTIONS instead of the 2.4 options. As a result, the default pc bios for 2.3 and lower machines has changed to the 128K version, which breaks 2.3 <> 2.4 migration. Fix this by restoring the original defaults. 2.4 machine options have not changed since the above commit, so no additional overrides are needed. Cc: ehabkost@redhat.com Cc: mst@redhat.com Signed-off-by: Michael Roth --- hw/i386/pc_piix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 8167b12..a896624 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -492,7 +492,7 @@ DEFINE_I440FX_MACHINE(v2_4, "pc-i440fx-2.4", NULL, static void pc_i440fx_2_3_machine_options(MachineClass *m) { - pc_i440fx_machine_options(m); + pc_i440fx_2_4_machine_options(m); m->alias = NULL; m->is_default = 0; SET_MACHINE_COMPAT(m, PC_COMPAT_2_3); -- 1.9.1