From patchwork Thu Feb 28 16:55:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Chen X-Patchwork-Id: 10833465 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4AC1115AC for ; Thu, 28 Feb 2019 16:59:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37D8D2F2DB for ; Thu, 28 Feb 2019 16:59:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B89C2F2B8; Thu, 28 Feb 2019 16:59:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=2.0 tests=BAYES_00,FROM_ADDR_WS, FROM_WSP_TRAIL,MAILING_LIST_MULTI autolearn=no version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D55EE2F2B8 for ; Thu, 28 Feb 2019 16:59:58 +0000 (UTC) Received: from localhost ([127.0.0.1]:42965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzP2L-0006OO-IE for patchwork-qemu-devel@patchwork.kernel.org; Thu, 28 Feb 2019 11:59:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzP12-0005G4-UT for qemu-devel@nongnu.org; Thu, 28 Feb 2019 11:58:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzP11-0007Ft-8A for qemu-devel@nongnu.org; Thu, 28 Feb 2019 11:58:36 -0500 Received: from mga17.intel.com ([192.55.52.151]:63406) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gzP10-0007D6-WE for qemu-devel@nongnu.org; Thu, 28 Feb 2019 11:58:35 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2019 08:58:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,423,1544515200"; d="scan'208";a="142431749" Received: from unknown (HELO localhost.localdomain) ([10.239.13.19]) by orsmga001.jf.intel.com with ESMTP; 28 Feb 2019 08:58:28 -0800 From: Zhang Chen To: Li Zhijian , Zhang Chen , "Dr. David Alan Gilbert" , Juan Quintela , zhanghailiang , Markus Armbruster , Eric Blake , qemu-dev Date: Fri, 1 Mar 2019 00:55:01 +0800 Message-Id: <20190228165508.21594-1-chen.zhang@intel.com> X-Mailer: git-send-email 2.17.GIT X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.151 Subject: [Qemu-devel] [PATCH V2 0/7] Migration/colo: Fix upstream bugs when occur failover X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhang Chen Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Zhang Chen This series focus on COLO failover bug fix and optimization. V2: - Add patch 4/7 to handle failover state. - Add new patches to optimize failover status. V1: - Init patch. Zhang Chen (7): Migration/colo.c: Fix double close bug when occur COLO failover Migration/colo.c: Fix COLO failover status error Migration/colo.c: Make COLO node running after failover Migration/colo.c: Add new COLOExitReason to handle all failover state qapi/migration.json: Remove a variable that doesn't exist in example Migration/colo.c: Add the necessary checks for colo_do_failover Migration/colo.c: Make user obtain the COLO mode info after failover migration/colo.c | 69 ++++++++++++++++++++++++++++++------------- migration/migration.c | 3 ++ qapi/migration.json | 17 ++++++----- 3 files changed, 61 insertions(+), 28 deletions(-)