diff options
author | Avi Kivity <avi@redhat.com> | 2011-12-19 12:06:23 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-20 14:14:08 +0200 |
commit | e34911c420c617151fe5bc95a4b6f269cca0483b (patch) | |
tree | 49b7cd0df473386a53bf4fef2534c48134dd2e72 /memory.h | |
parent | c65adf9bcdc9c3212d62696f1b52c8ce0f98dd7f (diff) |
memory: temporarily add memory_region_get_ram_addr()
This is a layering violation, but needed while the code contains
naked calls to qemu_get_ram_ptr() and the like.
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
@@ -558,6 +558,16 @@ void memory_region_add_subregion_overlap(MemoryRegion *mr, target_phys_addr_t offset, MemoryRegion *subregion, unsigned priority); + +/** + * memory_region_get_ram_addr: Get the ram address associated with a memory + * region + * + * DO NOT USE THIS FUCNTION. This is a temporary workaround while the Xen + * code is being reworked. + */ +ram_addr_t memory_region_get_ram_addr(MemoryRegion *mr); + /** * memory_region_del_subregion: Remove a subregion. * |