From patchwork Mon Sep 3 04:39:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Chen X-Patchwork-Id: 10585423 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 91449174C for ; Mon, 3 Sep 2018 04:49:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D77D29529 for ; Mon, 3 Sep 2018 04:49:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F4D829533; Mon, 3 Sep 2018 04:49:28 +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 1F1AF29529 for ; Mon, 3 Sep 2018 04:49:28 +0000 (UTC) Received: from localhost ([::1]:43404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwgnn-0000mB-BG for patchwork-qemu-devel@patchwork.kernel.org; Mon, 03 Sep 2018 00:49:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwghI-0003EU-Tn for qemu-devel@nongnu.org; Mon, 03 Sep 2018 00:42:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwghI-0006Fm-3U for qemu-devel@nongnu.org; Mon, 03 Sep 2018 00:42:44 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:33336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwghG-0006Ev-4A for qemu-devel@nongnu.org; Mon, 03 Sep 2018 00:42:43 -0400 Received: by mail-pg1-x52b.google.com with SMTP id s7-v6so999219pgc.0 for ; Sun, 02 Sep 2018 21:42:40 -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=ompHGMntM8YLxhdvafMIstaTIDp6nhh56ZvARjy7LX/Nw6fVPZjHNfZb7t3zoRZsLL TqO/OA0FXp6t+WZrVru1FgBGYtN/fuLGsEe0pJNPK5YwCLLbbVuBJVCj9rcz1hEaQb/B LE6MQnTFuxPZWkbckB4oOzvtS5xWQ8aiitJvakTiHvmHjF5R21NXWn8z6tRfHPXaSpGb c8F1RgSTWa0E66USC1WD3F3RWaRD3/uS//tePWazSIypSnGNCiPAzBWkHDflXCy0V+6+ 7ZjEFp7GE4V9pUAqY+kY54UQYG/D//B6Lg/XD5+IRdrY4gG91H5KfhqckwFlU9RKP3Hi szkA== 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=qeLrqJWRKyjfTA39onf2b38XYONATP3wYp/wQQ8xi+bPkyodHO/o/zjCq3gysc24aV TfT5MNbYqnwbYdxT8NAqAaR5TGA/5MdAgXhmwgGK/nMnqqaTenkgQmh4fQUJYlbWVlaa azOlOVs/UVKRQ+aIv9iW1NuRp7cp8oi6N2AQiNLgDu1MLLQeaZYWEvF011Z/NAIxuLZj PgAVSc2TJGvzIrZr0RIoury0bjmN+EoAtsNUYl8x9GbKbw5QVfuJ+/FJO1mCGM8WRT+B XNadgOqXAQGe9Es9OPrg0OV6znpdPjoc8H+6Jm6vPUqGmHWhTUr/dMSqJg7SGaM5dc9F g0qw== X-Gm-Message-State: APzg51BPeb1Hfwks4mpuvZB7lHj8cqGrdF3GRSDiboL4OkoLIq+nyzSG 4F8uaA+OJ1gVury/xZJ3TeBk2mIg X-Google-Smtp-Source: ANB0VdYfFa0ZkWiIFAiPoYYiIAMT3p5rHcyOJd8fKxkW0tcF6egNLJzLx609XFVGdEQWVSAaBXALqA== X-Received: by 2002:a62:a216:: with SMTP id m22-v6mr27289918pff.163.1535949759794; Sun, 02 Sep 2018 21:42:39 -0700 (PDT) Received: from localhost.localdomain (155.150.229.35.bc.googleusercontent.com. [35.229.150.155]) by smtp.gmail.com with ESMTPSA id g6-v6sm32738308pfb.11.2018.09.02.21.42.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Sep 2018 21:42:38 -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, 3 Sep 2018 12:39:00 +0800 Message-Id: <20180903043900.28592-20-zhangckid@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180903043900.28592-1-zhangckid@gmail.com> References: <20180903043900.28592-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::52b Subject: [Qemu-devel] [PATCH V12 19/19] 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: