[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 76/80] make mem_path local variable
From: |
Igor Mammedov |
Subject: |
[PATCH v4 76/80] make mem_path local variable |
Date: |
Fri, 31 Jan 2020 16:09:46 +0100 |
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 <address@hidden>
---
CC: address@hidden
CC: address@hidden
CC: address@hidden
---
include/sysemu/sysemu.h | 1 -
vl.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index 80c57fd..8de9065 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -53,7 +53,6 @@ extern uint8_t *boot_splash_filedata;
extern bool enable_mlock;
extern bool enable_cpu_pm;
extern QEMUClockType rtc_clock;
-extern const char *mem_path;
extern int mem_prealloc;
#define MAX_OPTION_ROMS 16
diff --git a/vl.c b/vl.c
index 4ce0799..7f12666 100644
--- a/vl.c
+++ b/vl.c
@@ -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;
@@ -2917,6 +2916,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);
--
2.7.4
- [PATCH v4 69/80] ppc/virtex_ml507: use memdev for RAM, (continued)
- [PATCH v4 69/80] ppc/virtex_ml507: use memdev for RAM, Igor Mammedov, 2020/01/31
- [PATCH v4 65/80] ppc/{ppc440_bamboo, sam460ex}: use memdev for RAM, Igor Mammedov, 2020/01/31
- [PATCH v4 64/80] ppc/{ppc440_bamboo, sam460ex}: drop RAM size fixup, Igor Mammedov, 2020/01/31
- [PATCH v4 72/80] sparc/niagara: use memdev for RAM, Igor Mammedov, 2020/01/31
- [PATCH v4 68/80] ppc/virtex_ml507: remove unused arguments, Igor Mammedov, 2020/01/31
- [PATCH v4 70/80] sparc/leon3: use memdev for RAM, Igor Mammedov, 2020/01/31
- [PATCH v4 71/80] sparc/sun4m: use memdev for RAM, Igor Mammedov, 2020/01/31
- [PATCH v4 73/80] remove no longer used memory_region_allocate_system_memory(), Igor Mammedov, 2020/01/31
- [PATCH v4 75/80] exec: drop bogus mem_path from qemu_ram_alloc_from_fd(), Igor Mammedov, 2020/01/31
- [PATCH v4 74/80] exec: cleanup qemu_minrampagesize()/qemu_maxrampagesize(), Igor Mammedov, 2020/01/31
- [PATCH v4 76/80] make mem_path local variable,
Igor Mammedov <=
- [PATCH v4 77/80] hostmem: introduce "prealloc-threads" property, Igor Mammedov, 2020/01/31
- [PATCH v4 79/80] tests/numa-test: make top level args dynamic and g_autofree(cli) cleanups, Igor Mammedov, 2020/01/31
- [PATCH v4 78/80] hostmem: fix strict bind policy, Igor Mammedov, 2020/01/31
- [PATCH v4 80/80] tests:numa-test: use explicit memdev to specify node RAM, Igor Mammedov, 2020/01/31
- Re: [PATCH v4 00/80] refactor main RAM allocation to use hostmem backend, no-reply, 2020/01/31
- Re: [PATCH v4 00/80] refactor main RAM allocation to use hostmem backend, no-reply, 2020/01/31