Skip to content

Commit 1148e4f

Browse files
Igor Mammedovbonzini
authored andcommitted
vl.c: error out if -mem-path is used together with -M memory-backend
the former is not actually used by explicit backend, so instead of silently ignoring the option in non valid context, exit with error. Signed-off-by: Igor Mammedov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent fb8a967 commit 1148e4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

softmmu/vl.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4315,6 +4315,11 @@ void qemu_init(int argc, char **argv, char **envp)
43154315
"explicitly specified 'memory-backend' property");
43164316
exit(EXIT_FAILURE);
43174317
}
4318+
if (mem_path) {
4319+
error_report("'-mem-path' can't be used together with"
4320+
"'-machine memory-backend'");
4321+
exit(EXIT_FAILURE);
4322+
}
43184323
ram_size = backend_size;
43194324
}
43204325

0 commit comments

Comments
 (0)