Received: from eggs.gnu.org ([2001:4830:134:3::10]:48295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wztf5-0000Ck-Fu for qemu-devel@nongnu.org; Wed, 25 Jun 2014 16:19:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wztez-00079g-DI for qemu-devel@nongnu.org; Wed, 25 Jun 2014 16:19:19 -0400 Received: from omzsmtpe04.verizonbusiness.com ([199.249.25.207]:9121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wztez-00079M-4d for qemu-devel@nongnu.org; Wed, 25 Jun 2014 16:19:13 -0400 From: Don Slutz Date: Wed, 25 Jun 2014 16:19:07 -0400 Message-Id: <1403727547-29203-1-git-send-email-dslutz@verizon.com> Subject: [Qemu-devel] [BUGFIX][PATCH 1/1] pc: Make isapc and pc-0.10 to pc-0.13 have 1.7.0 memory layout List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Don Slutz , Anthony Liguori , "Michael S. Tsirkin" This will prevent correct migration from QEMU 1.7.0 for these machine types when -m 3.5G is specified. Paolo Bonzini asked that: smbios_legacy_mode = true; has_reserved_memory = false; option_rom_has_mr = true; rom_file_has_mr = false; also be done. Signed-off-by: Don Slutz --- No idea how to test Paolo's changes. But they look good to me and compile cleanly. hw/i386/pc_piix.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 47546b7..2dccb34 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -392,6 +392,11 @@ static void pc_init_pci_no_kvmclock(MachineState *machine) has_pci_info = false; has_acpi_build = false; smbios_defaults = false; + gigabyte_align = false; + smbios_legacy_mode = true; + has_reserved_memory = false; + option_rom_has_mr = true; + rom_file_has_mr = false; x86_cpu_compat_disable_kvm_features(FEAT_KVM, KVM_FEATURE_PV_EOI); enable_compat_apic_id_mode(); pc_init1(machine, 1, 0); @@ -402,6 +407,11 @@ static void pc_init_isa(MachineState *machine) has_pci_info = false; has_acpi_build = false; smbios_defaults = false; + gigabyte_align = false; + smbios_legacy_mode = true; + has_reserved_memory = false; + option_rom_has_mr = true; + rom_file_has_mr = false; if (!machine->cpu_model) { machine->cpu_model = "486"; } -- 1.8.4