From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYZTy-0004uG-T4 for qemu-devel@nongnu.org; Wed, 24 Feb 2016 08:27:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYZTy-0005j2-32 for qemu-devel@nongnu.org; Wed, 24 Feb 2016 08:27:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYZTx-0005iy-Tt for qemu-devel@nongnu.org; Wed, 24 Feb 2016 08:27:58 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 9888E90E64 for ; Wed, 24 Feb 2016 13:27:57 +0000 (UTC) From: Paolo Bonzini Date: Wed, 24 Feb 2016 14:27:30 +0100 Message-Id: <1456320461-26756-9-git-send-email-pbonzini@redhat.com> In-Reply-To: <1456320461-26756-1-git-send-email-pbonzini@redhat.com> References: <1456320461-26756-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 08/19] dump-guest-memory: disable dump when in INMIGRATE state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Xu From: Peter Xu 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(+) diff --git a/dump.c b/dump.c index fed84a6..923e3a5 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()) { -- 2.5.0