From: Julien Grall Date: Sat, 26 Sep 2020 20:16:55 +0000 (+0100) Subject: xen/arm: Check if the platform is not using ACPI before initializing Dom0less X-Git-Tag: archive/raspbian/4.14.1+11-gb0b734a8b3-1+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7e6e315c7adc5ca129c3eaaad33ee069ef46e4cf;p=xen.git 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) --- diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 7968cee47d..318b97160e 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -975,7 +975,8 @@ void __init start_xen(unsigned long boot_phys_offset, system_state = SYS_STATE_active; - create_domUs(); + if ( acpi_disabled ) + create_domUs(); domain_unpause_by_systemcontroller(dom0);