Skip to content

Commit

Permalink
dump-guest-memory: disable dump when in INMIGRATE state
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Xu <[email protected]>
Reviewed-by: Fam Zheng <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
xzpeter authored and bonzini committed Feb 22, 2016
1 parent ca1fc8c commit 63e27f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 63e27f2

Please sign in to comment.