mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
numa: remove deprecated -mem-path fallback to anonymous RAM
it has been deprecated since 4.0 by commit
cb79224b7
(deprecate -mem-path fallback to anonymous RAM)
Deprecation period ran out and it's time to remove it
so it won't get in a way of switching to using hostmem
backend for RAM.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200219160953.13771-2-imammedo@redhat.com>
This commit is contained in:
parent
6c599282f8
commit
68a86dc15c
2 changed files with 1 additions and 26 deletions
|
@ -784,24 +784,8 @@ static void allocate_system_memory_nonnuma(MemoryRegion *mr, Object *owner,
|
|||
{
|
||||
if (mem_path) {
|
||||
#ifdef __linux__
|
||||
Error *err = NULL;
|
||||
memory_region_init_ram_from_file(mr, owner, name, ram_size, 0, 0,
|
||||
mem_path, &err);
|
||||
if (err) {
|
||||
error_report_err(err);
|
||||
if (mem_prealloc) {
|
||||
exit(1);
|
||||
}
|
||||
warn_report("falling back to regular RAM allocation");
|
||||
error_printf("This is deprecated. Make sure that -mem-path "
|
||||
" specified path has sufficient resources to allocate"
|
||||
" -m specified RAM amount\n");
|
||||
/* Legacy behavior: if allocation failed, fall back to
|
||||
* regular RAM allocation.
|
||||
*/
|
||||
mem_path = NULL;
|
||||
memory_region_init_ram_nomigrate(mr, owner, name, ram_size, &error_fatal);
|
||||
}
|
||||
mem_path, &error_fatal);
|
||||
#else
|
||||
fprintf(stderr, "-mem-path not supported on this host\n");
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue