Received: from eggs.gnu.org ([2001:4830:134:3::10]:45503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZE0Ri-0000T2-Rp for qemu-devel@nongnu.org; Sat, 11 Jul 2015 15:28:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZE0Rf-0001rJ-Gr for qemu-devel@nongnu.org; Sat, 11 Jul 2015 15:28:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZE0Rf-0001qK-BQ for qemu-devel@nongnu.org; Sat, 11 Jul 2015 15:28:19 -0400 Date: Sat, 11 Jul 2015 16:28:16 -0300 From: Eduardo Habkost Message-ID: <20150711192816.GQ32472@thinpad.lan.raisama.net> References: <1436473702-8917-1-git-send-email-mdroth@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436473702-8917-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: Re: [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: Michael Roth Cc: qemu-devel@nongnu.org, mst@redhat.com On Thu, Jul 09, 2015 at 03:28:22PM -0500, Michael Roth wrote: > 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 I submitted exactly the same fix on June 23: From: Eduardo Habkost To: qemu-devel@nongnu.org, "Michael S. Tsirkin" Date: Tue, 23 Jun 2015 14:00:51 -0300 Message-Id: <1435078851-10380-1-git-send-email-ehabkost@redhat.com> Cc: Laszlo Ersek , "Dr. David Alan Gilbert" Subject: [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options -- Eduardo