Don't use p2m_ram_rw for memory mapped into the guest with iomem, and
for reserved-memory regions. Instead, use p2m_mmio_direct_c which has
very similar pagetable properties but not the same security implications
(p2m_is_ram checks and memory allocations.)
Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
* p2m.
*/
if ( !strcmp(dt_node_name(node), "reserved-memory") )
- p2mt = p2m_ram_rw;
+ p2mt = p2m_mmio_direct_c;
res = handle_device(d, node, p2mt);
if ( res)
switch ( cache_policy )
{
case CACHEABILITY_MEMORY:
- t = p2m_ram_rw;
+ t = p2m_mmio_direct_c;
break;
case CACHEABILITY_DEVMEM:
t = p2m_mmio_direct_dev;