From patchwork Sat Aug 11 20:59:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Chen X-Patchwork-Id: 10563577 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 97BC713B4 for ; Sat, 11 Aug 2018 21:16:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 748482990B for ; Sat, 11 Aug 2018 21:16:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65E8D29982; Sat, 11 Aug 2018 21:16:37 +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 153FB2990B for ; Sat, 11 Aug 2018 21:16:36 +0000 (UTC) Received: from localhost ([::1]:33259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fobFU-00037j-3U for patchwork-qemu-devel@patchwork.kernel.org; Sat, 11 Aug 2018 17:16:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fob0r-0005jr-1q for qemu-devel@nongnu.org; Sat, 11 Aug 2018 17:01:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fob0n-0001nE-WC for qemu-devel@nongnu.org; Sat, 11 Aug 2018 17:01:29 -0400 Received: from mail-pl0-x231.google.com ([2607:f8b0:400e:c01::231]:39393) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fob0n-0001mq-PZ for qemu-devel@nongnu.org; Sat, 11 Aug 2018 17:01:25 -0400 Received: by mail-pl0-x231.google.com with SMTP id w14-v6so5384385plp.6 for ; Sat, 11 Aug 2018 14:01:25 -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=06HycV6v4ZN/DheKI9cIvbvXxU2TRCnL8VF/KmZnq/U=; b=hf0a4N5Cf8olGAhVFUKN3vPm/m8QKzMRn3oQfad2kLbsmR25ozYx1AYEZDH/9c50p0 JtaANuVVBh+A1C7o/X5kwuJg74FMCGT4eNbdsnjAm7dQwliTV5wNFM5ZkVn6zPY+ZCIo QIYrX11sK+wweF2xhOV23yvvdMbkdrf3HQN4yUM6a/1QOtZglibFS35wLK5sJiueN7E6 YUPyaFeZqUgTu1+avwKe2VdIDpMcM/mAlU2iOhsvFRETubtovcXjV3Jcyjn03U/g1EOF kKKocnwsMSKLm33lZhoS4nBu3bBOtx8O4n21fgPnbvYrilioM042L+KBPw8i4rDl9ngT LC5Q== 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=06HycV6v4ZN/DheKI9cIvbvXxU2TRCnL8VF/KmZnq/U=; b=ZLUxfbXjC6MTVAINwj5pmxnQsCAT2OLASyKvkB1Rg4YfwwSIieuXS/6efQjq9Qrsh3 6Oev2gWiFw/ATqnL8gK3yxEJ/E8jD/+QUX0veNlxSFlHOJrbyDuoYJNdMD6Cg8ZKJcaP imCtJ4kWX/OLSj+CIx1Ihqkc3zJstWotTLZaqRvPHVEa3k1449KPL0Hw0a2GEIY03zE1 21F5AXfORebBhHWNM9SYLPJhJUzHVVwNuwgJCLjkGN/ZbSxk1xu7Wbdi7cwFbeQCb2oF ij7agqOASdAhxEaNgbHiMct8DhhrHW+3E3NhaomvcMIht4FykV25ChnPEwvjGjJO65lC u8TQ== X-Gm-Message-State: AOUpUlG3NAvBN+8f9BgO6SJvk9WcXizdAWiTcyuUmeKBrxXjHZkCpoWV QsRSAQ2wggzTng897rBcjnXzpUMn X-Google-Smtp-Source: AA+uWPyGyzZmppAYcDMez12y6YmLIA5Jm7eiVZ6+sAIsVKrqGGatuz5XoXKpUY5jAVLJWktnMH+xqw== X-Received: by 2002:a17:902:a40b:: with SMTP id p11-v6mr11170708plq.228.1534021284541; Sat, 11 Aug 2018 14:01:24 -0700 (PDT) Received: from localhost.localdomain (155.150.229.35.bc.googleusercontent.com. [35.229.150.155]) by smtp.gmail.com with ESMTPSA id h24-v6sm23502641pfk.113.2018.08.11.14.01.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Aug 2018 14:01:23 -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: Sun, 12 Aug 2018 04:59:24 +0800 Message-Id: <20180811205924.4113-21-zhangckid@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180811205924.4113-1-zhangckid@gmail.com> References: <20180811205924.4113-1-zhangckid@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::231 Subject: [Qemu-devel] [PATCH V11 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 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: