diff options
author | Igor Mammedov | 2020-02-19 17:09:49 +0100 |
---|---|---|
committer | Patchew Importer | 2020-02-19 17:50:02 +0100 |
commit | 8b38de9f62cfc3d8d6f946c47e8afb6138539517 (patch) | |
tree | e93fb3a5c14e28211857f257af1c6614ac4b3393 /vl.c | |
parent | exec: drop bogus mem_path from qemu_ram_alloc_from_fd() (diff) | |
download | qemu-8b38de9f62cfc3d8d6f946c47e8afb6138539517.tar.gz qemu-8b38de9f62cfc3d8d6f946c47e8afb6138539517.tar.xz qemu-8b38de9f62cfc3d8d6f946c47e8afb6138539517.zip |
make mem_path local variable
It's no longer used anywhere beside main(),
so make it local variable that is used for CLI compat
purposes to keep -mem-path option working.
Under hood QEMU will use it to create
memory-backend-file,mem-path=...
backend and use its MemoryRegion as main RAM.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200219160953.13771-76-imammedo@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -140,7 +140,6 @@ enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB; int display_opengl; const char* keyboard_layout = NULL; ram_addr_t ram_size; -const char *mem_path = NULL; int mem_prealloc = 0; /* force preallocation of physical target memory */ bool enable_mlock = false; bool enable_cpu_pm = false; @@ -2883,6 +2882,7 @@ int main(int argc, char **argv, char **envp) Error *err = NULL; bool list_data_dirs = false; char *dir, **dirs; + const char *mem_path = NULL; BlockdevOptionsQueue bdo_queue = QSIMPLEQ_HEAD_INITIALIZER(bdo_queue); QemuPluginList plugin_list = QTAILQ_HEAD_INITIALIZER(plugin_list); |