From patchwork Sun Jul 22 19:33:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Chen X-Patchwork-Id: 10539399 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 11BCA1805 for ; Sun, 22 Jul 2018 19:47:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00FA127F92 for ; Sun, 22 Jul 2018 19:47:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E682F283BD; Sun, 22 Jul 2018 19:47:49 +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 8E4A727F92 for ; Sun, 22 Jul 2018 19:47:49 +0000 (UTC) Received: from localhost ([::1]:57279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhKKa-00050q-RZ for patchwork-qemu-devel@patchwork.kernel.org; Sun, 22 Jul 2018 15:47:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhK9C-0003aC-Nl for qemu-devel@nongnu.org; Sun, 22 Jul 2018 15:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhK9B-00018M-Ve for qemu-devel@nongnu.org; Sun, 22 Jul 2018 15:36:02 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:33573) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhK9B-000181-PT for qemu-devel@nongnu.org; Sun, 22 Jul 2018 15:36:01 -0400 Received: by mail-pf1-x443.google.com with SMTP id b17-v6so495873pfi.0 for ; Sun, 22 Jul 2018 12:36:01 -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=+PiF/0CCxP8AkFjhSAmThhHI/acJGqb7bzcME2c958A=; b=ZVmOJIMnbRAs8bkZZPC/gXSPJajjER1gp6UDJxu+bkXEFi4KHAD3RyVOfN8z0aMoFz XTXwC2M8QgzhDvCMWaIyDRCbzuQz3sxWY5d+lxtzrtngLEf/885t8dDsELcObCBcKmUl 5xTb/L22fOMfKVNVTV6SZX4jIGDowbVsRiLBoaeyUKhrNL4Dk1o8DpKETXgTHPGTw8Vs bpdT9ncHCyF6573ZBp/Wh87NKKompoGWTCoHhwHo+J4O3U+ygC9iatsOeMYi/jqlVjph /NKdECek8taHrbhNj98zRcfG0KXY9TcI+RjgjPC/YlGA8TuV3cgf8l/A0vmNq+aCL//v 9ksA== 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=+PiF/0CCxP8AkFjhSAmThhHI/acJGqb7bzcME2c958A=; b=G0niJzAww/dsYC5+ZAp9Ir7Okff/r2dzfsEmwqD+wtQmJgUFxJzxh8EucftAHc3l/n HN887WGufGc7jXdat1mmYR0ijTHznqmWtT9dpcKwhEQ4kHyEMPQh2hXWRZFdso/8qK0H lDNuo+S3r8JWGVgNJ22YThS/hLOLwNavfKaZu2v5n/erWH/EvQm1ONLVFfSRceiO8d7Y DmDL6x7hvkfnNQw0cn23tNkkGBGhxRO8b+5Kcwo+8LBeK3JDnh45XAWc97mYSa961L5J ZdDOWYrCt4CqESOGiOeYZdU4sQ4qiAGBdCzt1tJczC7sJ82m39V6OKEvFVJfmrTZ4p10 NNzQ== X-Gm-Message-State: AOUpUlFsCoV5HoziTZsrDZ5PHroQVOMmQjpD2LXOCx7torO+7aIK3cYG DVOIdqIEjAM5Sp2XAM8YphoJQBdQ X-Google-Smtp-Source: AAOMgpeinyTn1tlKvSv9s61uX/t89K3wkKRKLPsGZDMF7G7q9haUzF9JgNjesQcHnzyvjUewNxxjmQ== X-Received: by 2002:a63:1b17:: with SMTP id b23-v6mr9601353pgb.275.1532288160614; Sun, 22 Jul 2018 12:36:00 -0700 (PDT) Received: from localhost.localdomain (155.150.229.35.bc.googleusercontent.com. [35.229.150.155]) by smtp.gmail.com with ESMTPSA id 87-v6sm14215353pfn.103.2018.07.22.12.35.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 12:35:59 -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: Mon, 23 Jul 2018 03:33:50 +0800 Message-Id: <20180722193350.6028-21-zhangckid@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180722193350.6028-1-zhangckid@gmail.com> References: <20180722193350.6028-1-zhangckid@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::443 Subject: [Qemu-devel] [PATCH V10 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 d7c7dcda8f..d5007895d1 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: