diff options
| author | Peter Xu | 2016-02-18 06:16:51 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2016-02-22 18:40:28 +0100 |
| commit | 63e27f28f281986de791f099efa4fa15cc47f4fc (patch) | |
| tree | 9ece3fd19b64c92a15df1e3d52a066cb9016376c /dump.c | |
| parent | dump-guest-memory: introduce dump_process() helper function. (diff) | |
| download | qemu-63e27f28f281986de791f099efa4fa15cc47f4fc.tar.gz qemu-63e27f28f281986de791f099efa4fa15cc47f4fc.tar.xz qemu-63e27f28f281986de791f099efa4fa15cc47f4fc.zip | |
dump-guest-memory: disable dump when in INMIGRATE state
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-Id: <1455772616-8668-7-git-send-email-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'dump.c')
| -rw-r--r-- | dump.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1654,6 +1654,11 @@ void qmp_dump_guest_memory(bool paging, const char *file, DumpState *s; Error *local_err = NULL; + if (runstate_check(RUN_STATE_INMIGRATE)) { + error_setg(errp, "Dump not allowed during incoming migration."); + return; + } + /* if there is a dump in background, we should wait until the dump * finished */ if (dump_in_progress()) { |
