diff options
author | Igor Mammedov <imammedo@redhat.com> | 2020-02-19 11:08:35 -0500 |
---|---|---|
committer | Patchew Importer <importer@patchew.org> | 2020-02-19 16:49:53 +0000 |
commit | 68a86dc15ccdf0f1242dc71b3d8da18a3ee6b8be (patch) | |
tree | a70a0466cf93a766e8a4b00ba90ee0b2dd2a03c2 /hw/core | |
parent | 6c599282f8ab382fe59f03a6cae755b89561a7b3 (diff) | |
download | qemu-68a86dc15ccdf0f1242dc71b3d8da18a3ee6b8be.zip qemu-68a86dc15ccdf0f1242dc71b3d8da18a3ee6b8be.tar.gz qemu-68a86dc15ccdf0f1242dc71b3d8da18a3ee6b8be.tar.bz2 |
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>
Diffstat (limited to 'hw/core')
-rw-r--r-- | hw/core/numa.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/hw/core/numa.c b/hw/core/numa.c index 0d1b4be..840e685 100644 --- a/hw/core/numa.c +++ b/hw/core/numa.c @@ -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); |