From patchwork Wed Jun 27 20:41:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Chen X-Patchwork-Id: 10492667 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B62DE60386 for ; Wed, 27 Jun 2018 21:05:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B16EC2A114 for ; Wed, 27 Jun 2018 21:05:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5B392A127; Wed, 27 Jun 2018 21:05:31 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2CCCA2A123 for ; Wed, 27 Jun 2018 21:05:31 +0000 (UTC) Received: from localhost ([::1]:33231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYHd4-00047F-Eb for patchwork-qemu-devel@patchwork.kernel.org; Wed, 27 Jun 2018 17:05:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYHHu-0004tp-F6 for qemu-devel@nongnu.org; Wed, 27 Jun 2018 16:43:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYHHp-0007MJ-IP for qemu-devel@nongnu.org; Wed, 27 Jun 2018 16:43:38 -0400 Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]:32843) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYHHp-0007LC-Bm for qemu-devel@nongnu.org; Wed, 27 Jun 2018 16:43:33 -0400 Received: by mail-pg0-x235.google.com with SMTP id e11-v6so1433594pgq.0 for ; Wed, 27 Jun 2018 13:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZfdwIt/xMuOXsRNG76y6SsgDcUVgDt+VWcXS0m2Nuog=; b=QiZFtgYnku5GOysvUMqTNiaWI60+p96n6UP+hZPqInWyumx5qRnvfRuMNwQ36g1c7R 50l8IzvY4Id2MOQjwy9qH8RIu5zY6D43XzmNvbAWD017GPFOiOXVyPjKmNZOja3ZWhI3 PWKJEZe7UL4o6R6ig/Drb+k1xQXcnocn64ILMLHc58kQBKuq6QkYzMrcsFmz/sqsqzWh sGmDzVre6C9UmiiCKgTRp+w3gNe/szzZsO9WzQo/VYxG0GQG+i1Egf0EiRP1H5asFpON VLrzWwpEzWgsc6+Jw3D1eV0jg9fTu/AarETOJegWhOOPZ5VxOUNqRF+QTmyS/2gEqgs3 F/CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZfdwIt/xMuOXsRNG76y6SsgDcUVgDt+VWcXS0m2Nuog=; b=sXDKbQ5S/mGM3BYsdfRArKc0XW10qOgDkKuwb+EjGwIhzZoJ/qsQF64nSxU4leorXI RFVHcZvJ58e2lvXl+QXxv/WE0xWTg6XrMJoaOpdqI1zpPYcPgMo1PIre7yVkfl6by1Tw KmK5kwLslxmgxR1gLIaZSGca70A9HuA+ZsVmCF1lPfc2cWo28dthX0+TnaEHlnf0mnZ2 C5LfIBz553b1clIEdBMYrXGpWIOdXAJ933D+f0HIZ8xn1YetZF4AgJxvK3tE/OMqmUxO fSuH6F5mlEnOW8XGpcppohvp6Tj8I5YG1hCFr90/569ttjV58/2h5SfUsgbesaMs32bv 4CoA== X-Gm-Message-State: APt69E05JUdpncC1LKmK/qLcY4m91/oVnxDjXfFznoOnTZB8jMkpoUEl /kUx3ZBPqNMuvHo0YFUm+svYtA== X-Google-Smtp-Source: AAOMgpcBEkWmFJWOG2xLRr7H+FEkaWGY1kF5UT2aFbb4dCiQimuyfJEwBgfIHjlPuTSjiHwA6gpZAg== X-Received: by 2002:a62:104e:: with SMTP id y75-v6mr7335583pfi.109.1530132212093; Wed, 27 Jun 2018 13:43:32 -0700 (PDT) Received: from localhost.localdomain (155.150.229.35.bc.googleusercontent.com. [35.229.150.155]) by smtp.gmail.com with ESMTPSA id c67-v6sm9690428pfj.173.2018.06.27.13.43.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jun 2018 13:43:31 -0700 (PDT) From: Zhang Chen To: qemu-devel@nongnu.org, Paolo Bonzini , Juan Quintela , "Dr . David Alan Gilbert" , Jason Wang , Eric Blake , Markus Armbruster Date: Thu, 28 Jun 2018 04:41:36 +0800 Message-Id: <20180627204136.4177-21-zhangckid@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180627204136.4177-1-zhangckid@gmail.com> References: <20180627204136.4177-1-zhangckid@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::235 Subject: [Qemu-devel] [PATCH V9 20/20] docs: Add COLO status diagram to COLO-FT.txt 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 , zhanghailiang , Li Zhijian , 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 diagram make user better understand COLO. Suggested by Markus Armbruster. Signed-off-by: Zhang Chen --- docs/COLO-FT.txt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/COLO-FT.txt b/docs/COLO-FT.txt index e289be2f41..caa68f0a9a 100644 --- a/docs/COLO-FT.txt +++ b/docs/COLO-FT.txt @@ -110,6 +110,40 @@ Note: HeartBeat has not been implemented yet, so you need to trigger failover process by using 'x-colo-lost-heartbeat' command. +== COLO operation status == + ++-----------------+ +| | +| Start COLO | +| | ++--------+--------+ + | + | Main qmp command: + | migrate-set-capabilities with x-colo + | migrate + | + v ++--------+--------+ +| | +| COLO running | +| | ++--------+--------+ + | + | Main qmp command: + | x-colo-lost-heartbeat + | or + | some error happened + v ++--------+--------+ +| | send qmp event: +| COLO failover | COLO_EXIT +| | ++-----------------+ + +COLO use the qmp command switching and report operation status. +The diagram just write the main qmp command, you can get the detail +in test procedure. + == Test procedure == 1. Startup qemu Primary: