From patchwork Wed Sep 5 16:12: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: 10589191 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 B565E13BB for ; Wed, 5 Sep 2018 16:25:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 924102969C for ; Wed, 5 Sep 2018 16:25:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 849C02A0BE; Wed, 5 Sep 2018 16:25:02 +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 0B4572969C for ; Wed, 5 Sep 2018 16:25:01 +0000 (UTC) Received: from localhost ([::1]:57068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxac1-0006eK-As for patchwork-qemu-devel@patchwork.kernel.org; Wed, 05 Sep 2018 12:25:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxab2-0005eV-Cw for qemu-devel@nongnu.org; Wed, 05 Sep 2018 12:24:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxaQ2-0008H1-Qb for qemu-devel@nongnu.org; Wed, 05 Sep 2018 12:12:42 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:45705) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxaQ2-0008Ei-KA for qemu-devel@nongnu.org; Wed, 05 Sep 2018 12:12:38 -0400 Received: by mail-pf1-x442.google.com with SMTP id i26-v6so3709806pfo.12 for ; Wed, 05 Sep 2018 09:12:37 -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; bh=+EGHU6Rzakh+LHr5r5u6wSomvUCu5Yh3mMhefiD50po=; b=DKXCdoksnAArNhOYprCuWubiAQEpv5PsQfQlkQgR4HeStD+239jreT5UXC7sZ57lbm QZ0tMSAv+exQqiig8NDNpIEOxOD8YBbXxZHSNdGUCWbgVnO6rGMNqr9SKmtFw8Q8Z4b6 J6YlGxX4YuvEhmNuQfe6I1TpAr3khRG3Hsc3SqQbGtOVykKS59IuPvX9Zpe7SJBwvHYt LZzKjniuTqufltxSSd6vanu2uiESWmzDrjR2052gq1gP3a8Zntn046xNT05cm2cfws+3 9GyXiZ514a2Bz9gtIGmLqczI8DU1kkjj8nfxyi95Z4mPutTCCjJQpLkNX+wZqWnva5Bn KUPA== 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; bh=+EGHU6Rzakh+LHr5r5u6wSomvUCu5Yh3mMhefiD50po=; b=XpU/OsGXIrjDcYMEJG4b3dp14QPxDX2VQiTDF4XLp63yeZhSvi9x8vyP61sEui3ZQO VoEIz2OuCEq+dkpCC5/pk5DhwZuiLDLX9Sn8zvGb4ZPeZRHhyPIWHCktn5KHrj/VHvkV f/1c+GS8YiHQBeaSSUafz+6Y3Judts/av64BKk/1isE7xoutpG1bJWmwTnVWgLcL/0Z9 fpHer9KQMvVWSCViG+hXlGBct7n45iYLahBQqcTbWKLdSUVEa0slKWihE70f/PV51MRy /wPq69e0PMQDgw4PGbejy0pTsV7HDYR/ggkoHW0SQX/Tcf1Q59BJ2wJORDF21jLZ78Vn 7okQ== X-Gm-Message-State: APzg51BuzLSteEXpRKFkpU2rhYdfc5t2Xv8+F+C7+Rtz7lAw1IcHKDsk cqYOInGwmENVL4GavnLpE2KhNb9k X-Google-Smtp-Source: ANB0VdbZObIZVsLUN9LwXG7+m8+m3w0ehaEaN3bQ5G7QB8aFUo7L79ZdrtmRG8mevM9ttRrkW5Yi0A== X-Received: by 2002:a65:65c6:: with SMTP id y6-v6mr37649670pgv.436.1536163956678; Wed, 05 Sep 2018 09:12:36 -0700 (PDT) Received: from zhangc-ss-3.c.lucid-bebop-198320.internal (155.150.229.35.bc.googleusercontent.com. [35.229.150.155]) by smtp.gmail.com with ESMTPSA id 193-v6sm4164788pgh.47.2018.09.05.09.12.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Sep 2018 09:12:35 -0700 (PDT) From: Zhang Chen To: qemu-devel@nongnu.org, Wen Congyang , xie Changlong Date: Wed, 5 Sep 2018 16:12:00 +0000 Message-Id: <1536163920-2443-1-git-send-email-zhangckid@gmail.com> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::442 Subject: [Qemu-devel] [PATCH] docs/block-replication.txt: Add more detail about replication_do_checkpoint_all 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: "Dr . David Alan Gilbert" , Zhang Chen Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add more detail description for COLO checkpoint use case. Suggested by Dr. David Alan Gilbert Signed-off-by: Zhang Chen --- docs/block-replication.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/block-replication.txt b/docs/block-replication.txt index 6bde6737fb..b6c5e94764 100644 --- a/docs/block-replication.txt +++ b/docs/block-replication.txt @@ -131,9 +131,10 @@ a. replication_start_all() thread. b. replication_do_checkpoint_all() This interface is called after all VM state is transferred to - Secondary QEMU. The Disk buffer will be dropped in this interface. - The caller must hold the I/O mutex lock if it is in migration/checkpoint - thread. + secondary node, and in primary node this interface no need to + called after synchronizing all the states. The Disk buffer will be dropped + in this interface. The caller must hold the I/O mutex lock if it is + in migration/checkpoint thread. c. replication_get_error_all() This interface is called to check if error happened in replication. The caller must hold the I/O mutex lock if it is in migration/checkpoint