xenfv: set has_acpi_build to false
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
@@ -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
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_buildto 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.
Reported-by Sander Eikelenboom <[email protected]>Signed-off-by Wei Liu <[email protected]>
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@@ -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
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_buildto 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.
Reported-by Sander Eikelenboom <[email protected]>Signed-off-by Wei Liu <[email protected]>
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
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
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_buildto 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.
Reported-by Sander Eikelenboom <[email protected]>Signed-off-by Wei Liu <[email protected]>
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
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,
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_buildto 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
Reported-by Sander Eikelenboom <[email protected]>Signed-off-by Wei Liu <[email protected]>Just given this patch a spin and you may add a:
Tested-by Sander Eikelenboom <[email protected]>
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
-0hw/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
-0DEFINE_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
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_buildto 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
Reported-by Sander Eikelenboom <[email protected]>Signed-off-by Wei Liu <[email protected]>Just given this patch a spin and you may add a:
Tested-by Sander Eikelenboom <[email protected]>
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
-0hw/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
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_buildto 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
Reported-by Sander Eikelenboom <[email protected]>Signed-off-by Wei Liu <[email protected]>Just given this patch a spin and you may add a:
Tested-by Sander Eikelenboom <[email protected]>
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
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_buildto 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
Reported-by Sander Eikelenboom <[email protected]>Signed-off-by Wei Liu <[email protected]>Just given this patch a spin and you may add a:
Tested-by Sander Eikelenboom <[email protected]>
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.
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_buildto 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
Reported-by Sander Eikelenboom <[email protected]>Signed-off-by Wei Liu <[email protected]>Just given this patch a spin and you may add a:
Tested-by Sander Eikelenboom <[email protected]>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
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_buildto 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
Reported-by Sander Eikelenboom <[email protected]>Signed-off-by Wei Liu <[email protected]>Just given this patch a spin and you may add a:
Tested-by Sander Eikelenboom <[email protected]>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