From 63e27f28f281986de791f099efa4fa15cc47f4fc Mon Sep 17 00:00:00 2001 From: Peter Xu Date: Thu, 18 Feb 2016 13:16:51 +0800 Subject: dump-guest-memory: disable dump when in INMIGRATE state Signed-off-by: Peter Xu Reviewed-by: Fam Zheng Message-Id: <1455772616-8668-7-git-send-email-peterx@redhat.com> Signed-off-by: Paolo Bonzini --- dump.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dump.c') diff --git a/dump.c b/dump.c index fed84a699f..923e3a5756 100644 --- a/dump.c +++ b/dump.c @@ -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()) { -- cgit v1.2.1