Skip to contentSkip to conversation

xenfv: set has_acpi_build to false

PATCH In review Wei Liu 4 participants 10 messages Oct 27, 2016 – Oct 28, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH v2 1/1 xenfv: set has_acpi_build to false

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

---
Cc: Igor Mammedov <[email protected]>
Cc: Anthony PERARD <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Sander Eikelenboom <[email protected]>

---
 hw/i386/pc_piix.c | 4 ++++
 1 file changed, 4 insertions(+)
hw/i386/pc_piix.c +4 -0
index a54a468..08596a1 100644
@@ -1094,10 +1094,14 @@ DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa,
 #ifdef CONFIG_XEN
 static void xenfv_machine_options(MachineClass *m)
 {
+    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
+
     m->desc = "Xen Fully-virtualized PC";
     m->max_cpus = HVM_MAX_VCPUS;
     m->default_machine_opts = "accel=xen";
     m->hot_add_cpu = pc_hot_add_cpu;
+
+    pcmc->has_acpi_build = false;
 }
 
 DEFINE_PC_MACHINE(xenfv, "xenfv", pc_xen_hvm_init,
Signature · 1 line
2.1.4
Reviewed-by on v2 1/1
#1 lore raw
Quoted 10 lines · On Thu, 27 Oct 2016 14:51:09 +0100 Wei Liu <[email protected]> wrote:

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

Quoted 18 lines

---
Cc: Igor Mammedov <[email protected]>
Cc: Anthony PERARD <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Sander Eikelenboom <[email protected]>

---
 hw/i386/pc_piix.c | 4 ++++
 1 file changed, 4 insertions(+)
hw/i386/pc_piix.c +1 -0
index a54a468..08596a1 100644
@@ -1094,10 +1094,14 @@ DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa,
 #ifdef CONFIG_XEN
 static void xenfv_machine_options(MachineClass *m)
 {
+    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);

hw/i386/pc_piix.c DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa, · line 1107

Quoted 10 lines
hw/i386/pc_piix.c +3 -0
+
     m->desc = "Xen Fully-virtualized PC";
     m->max_cpus = HVM_MAX_VCPUS;
     m->default_machine_opts = "accel=xen";
     m->hot_add_cpu = pc_hot_add_cpu;
+
+    pcmc->has_acpi_build = false;
 }
 
 DEFINE_PC_MACHINE(xenfv, "xenfv", pc_xen_hvm_init,

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Tested-by on v2 1/1
#2 lore raw
In reply to Wei Liu
Quoted 10 lines · you

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

Just given this patch a spin and you may add a:

Thanks again!
--
Sander

Quoted 14 lines

---
Cc: Igor Mammedov <[email protected]>
Cc: Anthony PERARD <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Sander Eikelenboom <[email protected]>

---
 hw/i386/pc_piix.c | 4 ++++
 1 file changed, 4 insertions(+)
hw/i386/pc_piix.c +0 -0
index a54a468..08596a1 100644

hw/i386/pc_piix.c DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa, · line 1103

Quoted 10 lines
hw/i386/pc_piix.c +3 -0
@@ -1094,10 +1094,14 @@ DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa,
 #ifdef CONFIG_XEN
 static void xenfv_machine_options(MachineClass *m)
 {
+    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
+
     m->desc = "Xen Fully-virtualized PC";
     m->max_cpus = HVM_MAX_VCPUS;
     m->default_machine_opts = "accel=xen";
     m->hot_add_cpu = pc_hot_add_cpu;
+

+ pcmc->>has_acpi_build = false;

hw/i386/pc_piix.c DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa, · line 1107

Quoted 3 lines
hw/i386/pc_piix.c +0 -0
 }
 
 DEFINE_PC_MACHINE(xenfv, "xenfv", pc_xen_hvm_init,

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Tested-by on v2 1/1
#3 lore raw
In reply to Wei Liu
Quoted 10 lines · you

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

Just given this patch a spin and you may add a:

Thanks again!
--
Sander

Quoted 14 lines

---
Cc: Igor Mammedov <[email protected]>
Cc: Anthony PERARD <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Sander Eikelenboom <[email protected]>

---
 hw/i386/pc_piix.c | 4 ++++
 1 file changed, 4 insertions(+)
hw/i386/pc_piix.c +0 -0
index a54a468..08596a1 100644

hw/i386/pc_piix.c DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa, · line 1103

Quoted 10 lines
hw/i386/pc_piix.c +3 -0
@@ -1094,10 +1094,14 @@ DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa,
 #ifdef CONFIG_XEN
 static void xenfv_machine_options(MachineClass *m)
 {
+    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
+
     m->desc = "Xen Fully-virtualized PC";
     m->max_cpus = HVM_MAX_VCPUS;
     m->default_machine_opts = "accel=xen";
     m->hot_add_cpu = pc_hot_add_cpu;
+

+ pcmc->>has_acpi_build = false;

Quoted 3 lines
hw/i386/pc_piix.c +0 -0
 }
 
 DEFINE_PC_MACHINE(xenfv, "xenfv", pc_xen_hvm_init,
#4 lore raw
Quoted 10 lines · Sander Eikelenboom
Quoted 7 lines · you

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

Quoted 5 lines
Quoted 2 lines

Just given this patch a spin and you may add a:

The problem with this patch is that it only covers the xenfv machine case, which is default, but QEMU can also be invoked with -M pc,accel=xen. That case wouldn't be fixed by this patch. Wei, you can test it by adding "xen_platform_pci=0" to the VM config file. That's why we probably need a new option, similar to has_acpi_build, but that can be changed at accelerator init time.

Quoted 27 lines
Quoted 14 lines

---
Cc: Igor Mammedov <[email protected]>
Cc: Anthony PERARD <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Sander Eikelenboom <[email protected]>

---
 hw/i386/pc_piix.c | 4 ++++
 1 file changed, 4 insertions(+)
hw/i386/pc_piix.c +0 -0
index a54a468..08596a1 100644

hw/i386/pc_piix.c DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa, · line 1103

Quoted 10 lines
hw/i386/pc_piix.c +3 -0
@@ -1094,10 +1094,14 @@ DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa,
 #ifdef CONFIG_XEN
 static void xenfv_machine_options(MachineClass *m)
 {
+    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
+
     m->desc = "Xen Fully-virtualized PC";
     m->max_cpus = HVM_MAX_VCPUS;
     m->default_machine_opts = "accel=xen";
     m->hot_add_cpu = pc_hot_add_cpu;
+

+ pcmc->>has_acpi_build = false;

Quoted 2 lines
hw/i386/pc_piix.c +0 -0
 }
 
Quoted 8 lines

hw/i386/pc_piix.c DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa, · line 1107

Quoted 1 line
hw/i386/pc_piix.c +0 -0
 DEFINE_PC_MACHINE(xenfv, "xenfv", pc_xen_hvm_init,

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#5 lore raw
In reply to Sander Eikelenboom
Quoted 10 lines · Sander Eikelenboom
Quoted 7 lines · you

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

Quoted 5 lines
Quoted 2 lines

Just given this patch a spin and you may add a:

The problem with this patch is that it only covers the xenfv machine case, which is default, but QEMU can also be invoked with -M pc,accel=xen. That case wouldn't be fixed by this patch. Wei, you can test it by adding "xen_platform_pci=0" to the VM config file. That's why we probably need a new option, similar to has_acpi_build, but that can be changed at accelerator init time.

Quoted 35 lines
Quoted 14 lines

---
Cc: Igor Mammedov <[email protected]>
Cc: Anthony PERARD <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Sander Eikelenboom <[email protected]>

---
 hw/i386/pc_piix.c | 4 ++++
 1 file changed, 4 insertions(+)
hw/i386/pc_piix.c +0 -0
index a54a468..08596a1 100644

hw/i386/pc_piix.c DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa, · line 1103

Quoted 10 lines
hw/i386/pc_piix.c +3 -0
@@ -1094,10 +1094,14 @@ DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa,
 #ifdef CONFIG_XEN
 static void xenfv_machine_options(MachineClass *m)
 {
+    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
+
     m->desc = "Xen Fully-virtualized PC";
     m->max_cpus = HVM_MAX_VCPUS;
     m->default_machine_opts = "accel=xen";
     m->hot_add_cpu = pc_hot_add_cpu;
+

+ pcmc->>has_acpi_build = false;

hw/i386/pc_piix.c DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa, · line 1107

Quoted 3 lines
hw/i386/pc_piix.c +0 -0
 }
 
 DEFINE_PC_MACHINE(xenfv, "xenfv", pc_xen_hvm_init,

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#6 lore raw
Quoted 17 lines · Stefano Stabellini
Quoted 10 lines · Sander Eikelenboom
Quoted 7 lines · you

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

Quoted 5 lines
Quoted 2 lines

Just given this patch a spin and you may add a:

Quoted 7 lines

The problem with this patch is that it only covers the xenfv machine case, which is default, but QEMU can also be invoked with -M pc,accel=xen. That case wouldn't be fixed by this patch. Wei, you can test it by adding "xen_platform_pci=0" to the VM config file. That's why we probably need a new option, similar to has_acpi_build, but that can be changed at accelerator init time.

Do you mean we should add a new field to AccelClass?

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#7 lore raw
In reply to Stefano Stabellini
Quoted 17 lines · Stefano Stabellini
Quoted 10 lines · Sander Eikelenboom
Quoted 7 lines · you

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

Quoted 5 lines
Quoted 2 lines

Just given this patch a spin and you may add a:

Quoted 7 lines

The problem with this patch is that it only covers the xenfv machine case, which is default, but QEMU can also be invoked with -M pc,accel=xen. That case wouldn't be fixed by this patch. Wei, you can test it by adding "xen_platform_pci=0" to the VM config file. That's why we probably need a new option, similar to has_acpi_build, but that can be changed at accelerator init time.

Do you mean we should add a new field to AccelClass?

Wei.

#8 lore raw
Quoted 26 lines · Wei Liu
Quoted 17 lines · Stefano Stabellini
Quoted 10 lines · Sander Eikelenboom
Quoted 7 lines · you

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

Quoted 5 lines
Quoted 2 lines

Just given this patch a spin and you may add a:

Quoted 7 lines

The problem with this patch is that it only covers the xenfv machine case, which is default, but QEMU can also be invoked with -M pc,accel=xen. That case wouldn't be fixed by this patch. Wei, you can test it by adding "xen_platform_pci=0" to the VM config file. That's why we probably need a new option, similar to has_acpi_build, but that can be changed at accelerator init time.

Quoted 1 line

Do you mean we should add a new field to AccelClass?

I mean that this patch is insufficient unfortunately. I am not sure about what is the best way to solve this problem, but Eduardo suggested to add a new PCMachineState field:
http://marc.info/?l=qemu-devel&m=147749203112422&w=2

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#9 lore raw
In reply to Wei Liu
Quoted 26 lines · Wei Liu
Quoted 17 lines · Stefano Stabellini
Quoted 10 lines · Sander Eikelenboom
Quoted 7 lines · you

Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine.

This issue is discovered due to direct kernel boot on Xen doesn't boot anymore, because the new ACPI tables cause the guest to exceed its memory allocation limit.

Quoted 5 lines
Quoted 2 lines

Just given this patch a spin and you may add a:

Quoted 7 lines

The problem with this patch is that it only covers the xenfv machine case, which is default, but QEMU can also be invoked with -M pc,accel=xen. That case wouldn't be fixed by this patch. Wei, you can test it by adding "xen_platform_pci=0" to the VM config file. That's why we probably need a new option, similar to has_acpi_build, but that can be changed at accelerator init time.

Quoted 1 line

Do you mean we should add a new field to AccelClass?

I mean that this patch is insufficient unfortunately. I am not sure about what is the best way to solve this problem, but Eduardo suggested to add a new PCMachineState field:
http://marc.info/?l=qemu-devel&m=147749203112422&w=2