memory: implement memory_region_set_readonly()
authorAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 11:48:47 +0000 (14:48 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 11:48:47 +0000 (14:48 +0300)
commitfb1cd6f998fe7dba889e5c77962f94bb1a15d202
tree98b3da24a906737bf29c53e25bfd07749a232098
parent1ce9ce6a6184f0192015ba9adf1123d89cd47a7b
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>
memory.c
memory.h