diff options
| author | Igor Mammedov | 2020-04-09 15:41:33 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2020-04-13 08:56:18 +0200 |
| commit | 1148e4f4dc22f8efe3419fda4ca4f0a7369ef94a (patch) | |
| tree | 2998d8e90f6c4af3f040ed8b204e5ff024dafa27 /softmmu | |
| parent | rcu: do not mention atomic_mb_read/set in documentation (diff) | |
| download | qemu-1148e4f4dc22f8efe3419fda4ca4f0a7369ef94a.tar.gz qemu-1148e4f4dc22f8efe3419fda4ca4f0a7369ef94a.tar.xz qemu-1148e4f4dc22f8efe3419fda4ca4f0a7369ef94a.zip | |
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 <imammedo@redhat.com>
Message-Id: <20200409134133.11339-1-imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'softmmu')
| -rw-r--r-- | softmmu/vl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c index 58a40bcfc1..32c0047889 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -4315,6 +4315,11 @@ void qemu_init(int argc, char **argv, char **envp) "explicitly specified 'memory-backend' property"); exit(EXIT_FAILURE); } + if (mem_path) { + error_report("'-mem-path' can't be used together with" + "'-machine memory-backend'"); + exit(EXIT_FAILURE); + } ram_size = backend_size; } |
