From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5onh-0003ug-Dm for qemu-devel@nongnu.org; Mon, 07 Dec 2015 00:57:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5ong-0005h9-Ma for qemu-devel@nongnu.org; Mon, 07 Dec 2015 00:57:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5ong-0005gy-HF for qemu-devel@nongnu.org; Mon, 07 Dec 2015 00:57:28 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 2FAEB14CAA7 for ; Mon, 7 Dec 2015 05:57:28 +0000 (UTC) From: Peter Xu Date: Mon, 7 Dec 2015 13:56:31 +0800 Message-Id: <1449467796-15856-7-git-send-email-peterx@redhat.com> In-Reply-To: <1449467796-15856-1-git-send-email-peterx@redhat.com> References: <1449467796-15856-1-git-send-email-peterx@redhat.com> Subject: [Qemu-devel] [PATCH v5 06/11] 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: drjones@redhat.com, lersek@redhat.com, armbru@redhat.com, peterx@redhat.com, lcapitulino@redhat.com, famz@redhat.com, pbonzini@redhat.com Signed-off-by: Peter Xu --- dump.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dump.c b/dump.c index f0ee9a8..aa9d1f8 100644 --- a/dump.c +++ b/dump.c @@ -1625,6 +1625,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.4.3