diff options
author | Avi Kivity <avi@redhat.com> | 2011-12-08 15:58:43 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-20 14:14:06 +0200 |
commit | 8ea9252abe08631611effb905fbb4a015ec1514c (patch) | |
tree | a2fd996baedd546dc76d687ae8f78b181e4405d8 /memory.h | |
parent | 62ec4832ea1093b20a8a0893a016a00ef8145496 (diff) | |
download | hqemu-8ea9252abe08631611effb905fbb4a015ec1514c.zip hqemu-8ea9252abe08631611effb905fbb4a015ec1514c.tar.gz |
memory: add memory_region_is_ram()
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'memory.h')
-rw-r--r-- | memory.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -122,6 +122,7 @@ struct MemoryRegion { IORange iorange; bool terminates; bool readable; + bool ram; bool readonly; /* For RAM regions */ bool enabled; MemoryRegion *alias; @@ -267,6 +268,15 @@ void memory_region_destroy(MemoryRegion *mr); uint64_t memory_region_size(MemoryRegion *mr); /** + * memory_region_is_ram: check whether a memory region is random access + * + * Returns %true is a memory region is random access. + * + * @mr: the memory region being queried + */ +bool memory_region_is_ram(MemoryRegion *mr); + +/** * memory_region_get_ram_ptr: Get a pointer into a RAM memory region. * * Returns a host pointer to a RAM memory region (created with |