diff options
author | Avi Kivity <avi@redhat.com> | 2011-09-25 14:48:47 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-09-25 14:48:47 +0300 |
commit | fb1cd6f998fe7dba889e5c77962f94bb1a15d202 (patch) | |
tree | 98b3da24a906737bf29c53e25bfd07749a232098 /memory.h | |
parent | 1ce9ce6a6184f0192015ba9adf1123d89cd47a7b (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |