summaryrefslogtreecommitdiff
path: root/memory.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-09-25 14:48:47 +0300
committerAvi Kivity <avi@redhat.com>2011-09-25 14:48:47 +0300
commitfb1cd6f998fe7dba889e5c77962f94bb1a15d202 (patch)
tree98b3da24a906737bf29c53e25bfd07749a232098 /memory.h
parent1ce9ce6a6184f0192015ba9adf1123d89cd47a7b (diff)
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 <avi@redhat.com>
Diffstat (limited to 'memory.h')
-rw-r--r--memory.h1
1 files changed, 1 insertions, 0 deletions
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;