]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/docs: improve reserved-memory doc
authorStefano Stabellini <sstabellini@kernel.org>
Thu, 7 Mar 2019 21:21:59 +0000 (13:21 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 7 Mar 2019 21:21:59 +0000 (13:21 -0800)
Extend the device tree snippet example in the docs to have a memory
node that covers the reserved-memory range as required by the device
tree spec.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
docs/misc/arm/dom0_shared_mem.txt

index 8de513da5d051a6a921308b2afd3104c33ed92ef..7b10444e061cc407537d21b8f8e7a6ba402bc672 100644 (file)
@@ -46,13 +46,21 @@ be for example:
                 reg = <0x0 0x70000000 0x0 0x1000>;
             };
         };
+
+        memory {
+            device_type = "memory";
+            reg = <0x0 0x70000000 0x0 0x1000>;
+        };
     };
 };
 
 Similarly to the dom0 example, it tells the domU kernel that the page at
-0x70000000 is to be used as reserved memory. We add the device tree
-fragment to the DomU device tree using the device_tree option in the VM
-config file, the same way we use it for device assignment:
+0x70000000 is to be used as reserved memory. Note that we also added the
+range to a regular memory node, because it is required by device tree
+that all reserved-memory ranges are also covered by the regular memory
+nodes.  We add the device tree fragment to the DomU device tree using
+the device_tree option in the VM config file, the same way we use it for
+device assignment:
 
 device_tree = "/root/snippet.dtb"