From 8fa2755d0e64bfbcf739817ff374962313c8d69f Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Sat, 26 Sep 2020 21:16:55 +0100 Subject: [PATCH] xen/arm: Check if the platform is not using ACPI before initializing Dom0less Dom0less requires a device-tree. However, since commit 6e3e77120378 "xen/arm: setup: Relocate the Device-Tree later on in the boot", the device-tree will not get unflatten when using ACPI. This will lead to a crash during boot. Given the complexity to setup dom0less with ACPI (for instance how to assign device?), we should skip any code related to Dom0less when using ACPI. Signed-off-by: Julien Grall Tested-by: Rahul Singh Reviewed-by: Rahul Singh Reviewed-by: Stefano Stabellini Tested-by: Elliott Mitchell (cherry picked from commit dac867bf9adc1562a4cf9db5f89726597af13ef8) Gbp-Pq: Name 0032-xen-arm-Check-if-the-platform-is-not-using-ACPI-befo.patch --- xen/arch/arm/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 34b1c1a11e..fb2f45e230 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -961,7 +961,8 @@ void __init start_xen(unsigned long boot_phys_offset, if ( construct_dom0(dom0) != 0) panic("Could not set up DOM0 guest OS\n"); - create_domUs(); + if ( acpi_disabled ) + create_domUs(); /* * This needs to be called **before** heap_init_late() so modules -- 2.30.2