Skip to contentSkip to conversation

pc: drop external DSDT loading

PATCH Superseded Anthony Liguori 3 participants 6 messages Aug 8, 2013 – Aug 9, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pc: drop external DSDT loading

This breaks migration and is unneeded with modern SeaBIOS.

---
 hw/i386/pc_piix.c | 1 -
 hw/i386/pc_q35.c  | 1 -
 2 files changed, 2 deletions(-)
hw/i386/pc_piix.c +0 -1
index ab25458..daaff8a 100644
@@ -103,7 +103,6 @@ static void pc_init1(MemoryRegion *system_memory,
                               OBJECT(icc_bridge), NULL);
 
     pc_cpus_init(cpu_model, icc_bridge);
-    pc_acpi_init("acpi-dsdt.aml");
 
     if (kvm_enabled() && kvmclock_enabled) {
         kvmclock_create();
hw/i386/pc_q35.c +0 -1
index 2f35d12..8c6c7bc 100644
@@ -86,7 +86,6 @@ static void pc_q35_init(QEMUMachineInitArgs *args)
                               OBJECT(icc_bridge), NULL);
 
     pc_cpus_init(cpu_model, icc_bridge);
-    pc_acpi_init("q35-acpi-dsdt.aml");
 
     kvmclock_create();
 
Signature · 1 line
1.8.0
#1 lore raw
Quoted 1 line · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

No. Dropping for piix is fine. It will break q35 though.

Given that q35 can't be migrated anyway due to ahci being tagged as unmigratable keeping it for q35 (until the new acpi table loading is sorted) shouldn't hurt though.

cheers,
Gerd

#2 lore raw
Quoted 4 lines · Gerd Hoffmann
Quoted 1 line · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

No. Dropping for piix is fine. It will break q35 though.

Can you elaborate? When Michael and I discussed this I was under the impression that latest SeaBIOS had full support for q35.

Regards,

Anthony Liguori

Quoted 7 lines

Given that q35 can't be migrated anyway due to ahci being tagged as unmigratable keeping it for q35 (until the new acpi table loading is sorted) shouldn't hurt though.

cheers,
Gerd

#3 lore raw
Quoted 9 lines · Anthony Liguori
Quoted 4 lines · Gerd Hoffmann
Quoted 1 line · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

No. Dropping for piix is fine. It will break q35 though.

Can you elaborate? When Michael and I discussed this I was under the impression that latest SeaBIOS had full support for q35.

SeaBIOS has the piix acpi tables compiled in, for the snake of backward compatibility with old qemu versions which don't provide the acpi tables.

With the q35 merge seabios started to provide the apci tables via fw_cfg, for both q35 and piix, with the long-term goal to drop the internal tables some day even for piix.

Later on we figured table loading has live migration issues (due to bios binary being migrated but acpi tables are not, so you can end up with mismatches).

The idea to deal with that was to simply turn off acpi table loading for piix4, then wait for mst's acpi table patches which fix this for real (including migration). Continue loading the tables on q35, ignoring the live migration issue as ahci renders q35 unmigratable anyway.

I assumed that happend already, but looks like it slipped though, otherwise you would not have posted that patch ...

cheers,
Gerd

#4 lore raw
Quoted 18 lines · Gerd Hoffmann
Quoted 9 lines · Anthony Liguori
Quoted 4 lines · Gerd Hoffmann
Quoted 1 line · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

No. Dropping for piix is fine. It will break q35 though.

Can you elaborate? When Michael and I discussed this I was under the impression that latest SeaBIOS had full support for q35.

SeaBIOS has the piix acpi tables compiled in, for the snake of backward compatibility with old qemu versions which don't provide the acpi tables.

With the q35 merge seabios started to provide the apci tables via fw_cfg, for both q35 and piix, with the long-term goal to drop the internal tables some day even for piix.

Quoted 8 lines

Later on we figured table loading has live migration issues (due to bios binary being migrated but acpi tables are not, so you can end up with mismatches).

The idea to deal with that was to simply turn off acpi table loading for piix4, then wait for mst's acpi table patches which fix this for real (including migration). Continue loading the tables on q35, ignoring the live migration issue as ahci renders q35 unmigratable anyway.

Sounds like a plan for 1.6.

Quoted 5 lines

I assumed that happend already, but looks like it slipped though, otherwise you would not have posted that patch ...

cheers,
Gerd

#5 lore raw
In reply to Anthony Liguori
Quoted 5 lines · Anthony Liguori
Quoted 3 lines · Gerd Hoffmann
Quoted 1 line · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

Quoted 8 lines
Quoted 1 line

No. Dropping for piix is fine. It will break q35 though.

Can you elaborate? When Michael and I discussed this I was under the impression that latest SeaBIOS had full support for q35.

Regards,

Anthony Liguori

I think I made a mistake. SeaBIOS does have the dsdt for Q35 but it doesn not load it.

Quoted 7 lines
Quoted 7 lines

Given that q35 can't be migrated anyway due to ahci being tagged as unmigratable keeping it for q35 (until the new acpi table loading is sorted) shouldn't hurt though.

cheers,
Gerd