There is a mismatch between 'memory-backend' and '-m 0'(implicitly).

Signed-off-by: lichun <706701...@qq.com>
---
 softmmu/vl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/softmmu/vl.c b/softmmu/vl.c
index 1fe028800f..70eb2e53e9 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -2110,6 +2110,8 @@ static void set_memory_options(MachineClass *mc)
         exit(EXIT_FAILURE);
     }
 
+    /* store value for have_custom_ram_size() */
+    qemu_opt_set_number(opts, "size", ram_size, &error_abort);
     maxram_size = ram_size;
 
     if (qemu_opt_get(opts, "maxmem")) {
-- 
2.35.1


Reply via email to