diff options
author | Avi Kivity | 2011-12-21 12:09:49 +0100 |
---|---|---|
committer | Avi Kivity | 2012-01-04 12:34:48 +0100 |
commit | 7c63736603640ca7b74b65d71afc54fd0a3492f9 (patch) | |
tree | dd3f64ddeceb262b2abf0ffa426dfbba35c492b8 /exec.c | |
parent | vmstate, memory: decouple vmstate from memory API (diff) | |
download | qemu-7c63736603640ca7b74b65d71afc54fd0a3492f9.tar.gz qemu-7c63736603640ca7b74b65d71afc54fd0a3492f9.tar.xz qemu-7c63736603640ca7b74b65d71afc54fd0a3492f9.zip |
Store MemoryRegion in RAMBlock
As a step in moving live migration from RAMBlocks to MemoryRegions,
store the MemoryRegion in a RAMBlock.
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2793,6 +2793,7 @@ ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host, size = TARGET_PAGE_ALIGN(size); new_block = g_malloc0(sizeof(*new_block)); + new_block->mr = mr; new_block->offset = find_ram_offset(size); if (host) { new_block->host = host; |