Skip to contentSkip to conversation

pc: Make isapc and pc-0.10 to pc-0.13 have 1.7.0 memory layout

PATCH Applied Don Slutz 2 participants 3 messages Jun 25, 2014 – Jun 26, 2014

lore
Share & tools
lore

Don Slutz

author
#0 lore raw

PATCH 1/1 pc: Make isapc and pc-0.10 to pc-0.13 have 1.7.0 memory layout

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.

---

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(+)
hw/i386/pc_piix.c +10 -0
index 47546b7..2dccb34 100644
@@ -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";
     }
Signature · 1 line
1.8.4
#1 lore raw

So how the commit message change:

Quoted 2 lines · Don Slutz

This will prevent correct migration from QEMU 1.7.0 for these machine types when -m 3.5G is specified.

This fixes bug:

https://bugs.launchpad.net/qemu/+bug/1334307

Quoted 7 lines

Paolo Bonzini asked that:

     smbios_legacy_mode = true;
     has_reserved_memory = false;
     option_rom_has_mr = true;
     rom_file_has_mr = false;
Quoted 7 lines

also be done.

---

No idea how to test Paolo's changes. But they look good to me and compile cleanly.

got lost. :(
-Don Slutz

Quoted 31 lines
  hw/i386/pc_piix.c | 10 ++++++++++
  1 file changed, 10 insertions(+)
hw/i386/pc_piix.c +10 -0
index 47546b7..2dccb34 100644
@@ -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";
      }
#2 lore raw
In reply to Don Slutz
Quoted 5 lines · Don Slutz

This will prevent correct migration from QEMU 1.7.0 for these machine types when -m 3.5G is specified.

Paolo Bonzini asked that:

Quoted 8 lines
    smbios_legacy_mode = true;
    has_reserved_memory = false;
    option_rom_has_mr = true;
    rom_file_has_mr = false;

also be done.

I tweaked commit log so it's readable without
the subject.

Applied, thanks everyone.

Quoted 38 lines

---

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(+)
hw/i386/pc_piix.c +10 -0
index 47546b7..2dccb34 100644
@@ -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";
     }
Signature · 1 line
1.8.4