]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: dt: Relax hw domain mapping attributes to p2m_mmio_direct_c
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Thu, 26 Jan 2017 13:16:00 +0000 (14:16 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Mar 2017 20:57:15 +0000 (13:57 -0700)
Since the hardware domain is a trusted domain, we extend the
trust to include making final decisions on what attributes to
use when mapping memory regions.

For device-tree configured hardware domains, this patch relaxes
the hardware domains mapping attributes to p2m_mmio_direct_c.
This will allow the hardware domain to control the attributes
via its S1 mappings.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain_build.c

index e8a400cc7d5537f42fbecfcf74fc3651106fb61d..af58f7bf409b8adf12930ed792d3eebbb93fbe69 100644 (file)
@@ -1319,7 +1319,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
 
 static int prepare_dtb(struct domain *d, struct kernel_info *kinfo)
 {
-    const p2m_type_t default_p2mt = p2m_mmio_direct_dev;
+    const p2m_type_t default_p2mt = p2m_mmio_direct_c;
     const void *fdt;
     int new_size;
     int ret;