mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
memory: Rename memory_region_init_ram() to memory_region_init_ram_nomigrate()
Rename memory_region_init_ram() to memory_region_init_ram_nomigrate(). This leaves the way clear for us to provide a memory_region_init_ram() which does handle migration. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1499438577-7674-4-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
a5c0234bb2
commit
1cfe48c1ce
72 changed files with 121 additions and 120 deletions
4
numa.c
4
numa.c
|
@ -542,14 +542,14 @@ static void allocate_system_memory_nonnuma(MemoryRegion *mr, Object *owner,
|
|||
/* Legacy behavior: if allocation failed, fall back to
|
||||
* regular RAM allocation.
|
||||
*/
|
||||
memory_region_init_ram(mr, owner, name, ram_size, &error_fatal);
|
||||
memory_region_init_ram_nomigrate(mr, owner, name, ram_size, &error_fatal);
|
||||
}
|
||||
#else
|
||||
fprintf(stderr, "-mem-path not supported on this host\n");
|
||||
exit(1);
|
||||
#endif
|
||||
} else {
|
||||
memory_region_init_ram(mr, owner, name, ram_size, &error_fatal);
|
||||
memory_region_init_ram_nomigrate(mr, owner, name, ram_size, &error_fatal);
|
||||
}
|
||||
vmstate_register_ram_global(mr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue