]> xenbits.xensource.com Git - xen.git/commitdiff
xen: arm: add enable-method to cpu nodes for arm64 guests.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 19 Nov 2013 13:00:13 +0000 (13:00 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 19 Nov 2013 16:41:05 +0000 (16:41 +0000)
This is required by the Linux arm64 boot protocol.

We use PSCI.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/domain_build.c

index f0def77ce3e706cde0baddf9df3e234beb2f9e47..4014b0ae9ff6c351762f8dc45598105c7880aa66 100644 (file)
@@ -513,6 +513,13 @@ static int make_cpus_node(const struct domain *d, void *fdt,
                 return res;
         }
 
+        if ( is_pv64_domain(d) )
+        {
+            res = fdt_property_string(fdt, "enable-method", "psci");
+            if ( res )
+                return res;
+        }
+
         res = fdt_end_node(fdt);
         if ( res )
             return res;