]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
tools: ARM: vGICv3: Avoid inserting optional DT properties
authorAndre Przywara <andre.przywara@linaro.org>
Mon, 5 Mar 2018 16:03:19 +0000 (16:03 +0000)
committerJulien Grall <julien.grall@arm.com>
Tue, 6 Mar 2018 11:10:41 +0000 (11:10 +0000)
When creating a GICv3 devicetree node, we currently insert the
redistributor-stride and #redistributor-regions properties, with fixed
values which are actually the architected ones. Since those properties are
optional, and in the case of the stride only needed to cover for broken
platforms, we don't need to describe them if they don't differ from the
default values. This will always be the case for our constructed
DomU memory map.
So we drop those properties altogether and provide a clean and architected
GICv3 DT node for DomUs.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_arm.c

index 86f59c0d801b3c026a39492f0ff00d1bd6f5817a..906fd0dcdfcb35e876b8284bc4fccb54c178283c 100644 (file)
@@ -525,14 +525,6 @@ static int make_gicv3_node(libxl__gc *gc, void *fdt)
     res = fdt_property(fdt, "interrupt-controller", NULL, 0);
     if (res) return res;
 
-    res = fdt_property_cell(fdt, "redistributor-stride",
-                            GUEST_GICV3_RDIST_STRIDE);
-    if (res) return res;
-
-    res = fdt_property_cell(fdt, "#redistributor-regions",
-                            GUEST_GICV3_RDIST_REGIONS);
-    if (res) return res;
-
     res = fdt_property_regs(gc, fdt, ROOT_ADDRESS_CELLS, ROOT_SIZE_CELLS,
                             2,
                             gicd_base, gicd_size,