]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
xen/arm: Check if the platform is not using ACPI before initializing Dom0less
authorJulien Grall <jgrall@amazon.com>
Sat, 26 Sep 2020 20:16:55 +0000 (21:16 +0100)
committerJulien Grall <jgrall@amazon.com>
Fri, 30 Oct 2020 18:43:42 +0000 (18:43 +0000)
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 <jgrall@amazon.com>
Tested-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Elliott Mitchell <ehem+xen@m5p.com>
xen/arch/arm/setup.c

index f16b33fa87a2ca7f764656c94f4d91be8a8518c8..35e5bee04efafc3b0f7c9cbff507e0b78c3981bb 100644 (file)
@@ -987,7 +987,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);