[1/1] xen/arm: Use "" instead of "/" for domU root node.
diff mbox series

Message ID dbab1e7ad690f326e2ae230d2dbb2bb80bcfeace.1562435004.git.will.abele@starlab.io
State New
Headers show
Series
  • Dom0less guest device tree format
Related show

Commit Message

Will Abele July 6, 2019, 6:02 p.m. UTC
From: Will Abele <will.abele@starlab.io>

Prior to linux a7e4cfb0a7ca4773e7d0dd1d9c018ab27a15360e
(merged in 4.15), Linux checked to see if the device tree version was
greater than 0x10 by checking for a root node "/". Xen creates a version
0x11 device tree, so the root node's unit name should be "".

Signed-off-by: Will Abele <will.abele@starlab.io>
---
 xen/arch/arm/domain_build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index d9836779d1..af936b4c3a 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -1697,7 +1697,7 @@  static int __init prepare_dtb_domU(struct domain *d, struct kernel_info *kinfo)
     if ( ret < 0 )
         goto err;
 
-    ret = fdt_begin_node(kinfo->fdt, "/");
+    ret = fdt_begin_node(kinfo->fdt, "");
     if ( ret < 0 )
         goto err;