From fb1cd6f998fe7dba889e5c77962f94bb1a15d202 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 25 Sep 2011 14:48:47 +0300 Subject: memory: implement memory_region_set_readonly() The property is inheritable, but only if set to true. This is so that memory routers can mark sections of RAM as read-only via aliases. Signed-off-by: Avi Kivity --- memory.h | 1 + 1 file changed, 1 insertion(+) (limited to 'memory.h') diff --git a/memory.h b/memory.h index 06b83ae76b..e93e65a4f2 100644 --- a/memory.h +++ b/memory.h @@ -114,6 +114,7 @@ struct MemoryRegion { IORange iorange; bool terminates; bool readable; + bool readonly; /* For RAM regions */ MemoryRegion *alias; target_phys_addr_t alias_offset; unsigned priority; -- cgit v1.2.1