Skip to contentSkip to conversation

pc: drop external DSDT loading

PATCH Applied Anthony Liguori 3 participants 8 messages Aug 12, 2013 – Aug 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pc: drop external DSDT loading

This breaks migration and is unneeded with modern SeaBIOS.

---
v1 -> v2
- Still load external DSDT for q35

---
 hw/i386/pc_piix.c | 1 -
 1 file changed, 1 deletion(-)
hw/i386/pc_piix.c +0 -1
index 95c45b8..311574a 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();
Signature · 1 line
1.8.0
#1 lore raw

Am 12.08.2013 16:01, schrieb Anthony Liguori:

Quoted 6 lines

This breaks migration and is unneeded with modern SeaBIOS.

---
v1 -> v2
- Still load external DSDT for q35

Care to extend $subject with "for i440fx" then before applying? :)

Regards,
Andreas

Quoted 17 lines
---
 hw/i386/pc_piix.c | 1 -
 1 file changed, 1 deletion(-)
hw/i386/pc_piix.c +0 -1
index 95c45b8..311574a 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();
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#2 lore raw
In reply to Anthony Liguori
Quoted 3 lines · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

Hmm don't we want to keep it around for machine types 1.4.0 and 1.5.0?

By the way, copy stable as well?
Loading it unconditonally is a cross version migration bug that we probably want to fix on stable branch - disabling for 1.3.0 and older.

Quoted 21 lines

---
v1 -> v2
- Still load external DSDT for q35

---
 hw/i386/pc_piix.c | 1 -
 1 file changed, 1 deletion(-)
hw/i386/pc_piix.c +0 -1
index 95c45b8..311574a 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();
Signature · 1 line
1.8.0
#3 lore raw
Quoted 7 lines · Michael S. Tsirkin
Quoted 3 lines · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

Hmm don't we want to keep it around for machine types 1.4.0 and 1.5.0?

Hrm, why?

Regards,

Anthony Liguori

Quoted 27 lines

By the way, copy stable as well?
Loading it unconditonally is a cross version migration bug that we probably want to fix on stable branch - disabling for 1.3.0 and older.

Quoted 21 lines

---
v1 -> v2
- Still load external DSDT for q35

---
 hw/i386/pc_piix.c | 1 -
 1 file changed, 1 deletion(-)
hw/i386/pc_piix.c +0 -1
index 95c45b8..311574a 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();
Signature · 1 line
1.8.0
#4 lore raw
Quoted 11 lines · Anthony Liguori
Quoted 7 lines · Michael S. Tsirkin
Quoted 3 lines · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

Hmm don't we want to keep it around for machine types 1.4.0 and 1.5.0?

Hrm, why?

Well this modifies the contents of ROM which is loaded from FW CFG and isn't migrated, correct? If guest is migrated from 1.6 to 1.5
while it is loading the ROM,
it will likely get a corrupted table.

Quoted 31 lines

Regards,

Anthony Liguori

Quoted 27 lines

By the way, copy stable as well?
Loading it unconditonally is a cross version migration bug that we probably want to fix on stable branch - disabling for 1.3.0 and older.

Quoted 21 lines

---
v1 -> v2
- Still load external DSDT for q35

---
 hw/i386/pc_piix.c | 1 -
 1 file changed, 1 deletion(-)
hw/i386/pc_piix.c +0 -1
index 95c45b8..311574a 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();
Signature · 1 line
1.8.0
#5 lore raw
Quoted 11 lines · Michael S. Tsirkin
Quoted 10 lines · Anthony Liguori
Quoted 7 lines · Michael S. Tsirkin
Quoted 3 lines · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

Hmm don't we want to keep it around for machine types 1.4.0 and 1.5.0?

Quoted 7 lines
Quoted 1 line

Hrm, why?

Well this modifies the contents of ROM which is loaded from FW CFG and isn't migrated, correct? If guest is migrated from 1.6 to 1.5
while it is loading the ROM,
it will likely get a corrupted table.

No, if you migrate from 1.6 to 1.5 the ROM is untouched. ROMs aren't migrated so it doesn't really matter.

If you migrate from 1.5 while reading the ROM contents, then badness can ensue but that's already the case without this patch.

Regards,

Anthony Liguori

Quoted 33 lines
Quoted 33 lines

Regards,

Anthony Liguori

Quoted 27 lines

By the way, copy stable as well?
Loading it unconditonally is a cross version migration bug that we probably want to fix on stable branch - disabling for 1.3.0 and older.

Quoted 21 lines

---
v1 -> v2
- Still load external DSDT for q35

---
 hw/i386/pc_piix.c | 1 -
 1 file changed, 1 deletion(-)
hw/i386/pc_piix.c +0 -1
index 95c45b8..311574a 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();
Signature · 1 line
1.8.0
Reviewed-by
#6 lore raw
Quoted 15 lines · Anthony Liguori
Quoted 13 lines · Michael S. Tsirkin
Quoted 11 lines · Anthony Liguori
Quoted 7 lines · Michael S. Tsirkin
Quoted 3 lines · Anthony Liguori

This breaks migration and is unneeded with modern SeaBIOS.

Hmm don't we want to keep it around for machine types 1.4.0 and 1.5.0?

Hrm, why?

Quoted 8 lines
Quoted 5 lines

Well this modifies the contents of ROM which is loaded from FW CFG and isn't migrated, correct? If guest is migrated from 1.6 to 1.5
while it is loading the ROM,
it will likely get a corrupted table.

No, if you migrate from 1.6 to 1.5 the ROM is untouched. ROMs aren't migrated so it doesn't really matter.

Clarifying this on IRC, what was meant here is that -acpi is uncommon so bios typically checks and sees nothing in the ACPI FW CFG entry, and this check is atomic. So this works, by luck.

Quoted 7 lines

If you migrate from 1.5 while reading the ROM contents, then badness can ensue but that's already the case without this patch.

Regards,

Anthony Liguori

Well there's a difference between can and will :) But yes, some future version will likely break it anyway.

Quoted 33 lines
Quoted 33 lines
Quoted 33 lines

Regards,

Anthony Liguori

Quoted 27 lines

By the way, copy stable as well?
Loading it unconditonally is a cross version migration bug that we probably want to fix on stable branch - disabling for 1.3.0 and older.

Quoted 21 lines

---
v1 -> v2
- Still load external DSDT for q35

---
 hw/i386/pc_piix.c | 1 -
 1 file changed, 1 deletion(-)
hw/i386/pc_piix.c +0 -1
index 95c45b8..311574a 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();
Signature · 1 line
1.8.0