From patchwork Sat Aug 11 20:59:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Chen X-Patchwork-Id: 10563561 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 B8FEA1510 for ; Sat, 11 Aug 2018 21:08:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAB54298D9 for ; Sat, 11 Aug 2018 21:08:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B0B629915; Sat, 11 Aug 2018 21:08:56 +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 404C4298D9 for ; Sat, 11 Aug 2018 21:08:56 +0000 (UTC) Received: from localhost ([::1]:33213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fob83-0003f8-Fi for patchwork-qemu-devel@patchwork.kernel.org; Sat, 11 Aug 2018 17:08:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fob02-0005DA-HJ for qemu-devel@nongnu.org; Sat, 11 Aug 2018 17:00:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fob01-0001Qr-P4 for qemu-devel@nongnu.org; Sat, 11 Aug 2018 17:00:38 -0400 Received: from mail-pl0-x22f.google.com ([2607:f8b0:400e:c01::22f]:33031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fob01-0001QY-JV for qemu-devel@nongnu.org; Sat, 11 Aug 2018 17:00:37 -0400 Received: by mail-pl0-x22f.google.com with SMTP id b90-v6so5396307plb.0 for ; Sat, 11 Aug 2018 14:00: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:in-reply-to:references; bh=r8TzZ9DQANYfrVKfulYSTmRjRXN9eA0MPtIvg6/ga8Y=; b=je4M50hST6wCYYxczr+raDAanLodTQdf+DJbhUQPsdGXrhpxGdEN2AGzjgY9DIs5H9 4upmeQXHrSmeCb05FjkjdbuC3r8XuOgtM3mviT4dLaKY2wPakYGDm3wZ6K1j/RoO+mZh Q79w9MIsnbbwvtFxCCi2WfxtNNl4gdZsk6ffwkJeBezxBsYeGcQk2H3EmZko0NTp9yTY +kmqTf56ZwOZoqtnx//5RmfsAYmenbHhNsOmGvKVjKnkmaOaSahq8W2BDzbbmB0UxmrB OnFJhvMQvjXkdsbSYWwfqewAhRwD6t0JT+TrNN70jesaH/fNs507x7ExrSsRybvb2dwM hYKg== 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=r8TzZ9DQANYfrVKfulYSTmRjRXN9eA0MPtIvg6/ga8Y=; b=gIEB3Xe+G/Hft4L8GB67XJzzlP+RgR1Ny2gS/7ZBaaJQm2L7chlaxAJ/8pqtVX9E6a 8Rbdt2u+aFG8n7c9+Q3k5lT7Nih11veakryeFqs0nj1G6e07XUVRdzsgB6Io6WYDECOG H9SJR22ikpYL3dEkcz8odMLtupUz5Jkj0OXW7eWwq735w8kUqDdR9UIlwa10znG+TNF3 nZq8WHcSoaIm+r4JfN89WTbZ8C1mPBPlaX33DliuVw+xyXkBTD9eh6SaonL6qbAfSLJy ObwziDCXlDGxiP5mBrjDd8GBQgx2u7T9kCLgCVO7z8ypCab3CL4N8Spl4GcHSEALLiIF qnnA== X-Gm-Message-State: AOUpUlEnPHznRKxImBroYfLX8TSFNj9B6kli1CGKPjook/7u0Js6H4oQ GvdgUXYC/4/trpNb5bTZOIxJumRr X-Google-Smtp-Source: AA+uWPzjq6PCMeW9E7psh8tERiA5uTzcfap2akYjg8VOe3S7HbOqrUXLHzGwFsmub+vnZdcI6jFArw== X-Received: by 2002:a17:902:900a:: with SMTP id a10-v6mr11067234plp.143.1534021236278; Sat, 11 Aug 2018 14:00:36 -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.00.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Aug 2018 14:00:35 -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:15 +0800 Message-Id: <20180811205924.4113-12-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::22f Subject: [Qemu-devel] [PATCH V11 11/20] qapi/migration.json: Rename COLO unknown mode to none mode. 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 Suggested by Markus Armbruster rename COLO unknown mode to none mode. Signed-off-by: Zhang Chen Signed-off-by: Zhang Chen Reviewed-by: Eric Blake Reviewed-by: Markus Armbruster --- migration/colo-failover.c | 2 +- migration/colo.c | 2 +- qapi/migration.json | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/migration/colo-failover.c b/migration/colo-failover.c index 0ae0c41221..4854a96c92 100644 --- a/migration/colo-failover.c +++ b/migration/colo-failover.c @@ -77,7 +77,7 @@ FailoverStatus failover_get_state(void) void qmp_x_colo_lost_heartbeat(Error **errp) { - if (get_colo_mode() == COLO_MODE_UNKNOWN) { + if (get_colo_mode() == COLO_MODE_NONE) { error_setg(errp, QERR_FEATURE_DISABLED, "colo"); return; } diff --git a/migration/colo.c b/migration/colo.c index ab484ad754..8fdb79ac73 100644 --- a/migration/colo.c +++ b/migration/colo.c @@ -160,7 +160,7 @@ COLOMode get_colo_mode(void) } else if (migration_incoming_in_colo_state()) { return COLO_MODE_SECONDARY; } else { - return COLO_MODE_UNKNOWN; + return COLO_MODE_NONE; } } diff --git a/qapi/migration.json b/qapi/migration.json index 36faea59c1..78932206dd 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -867,18 +867,18 @@ ## # @COLOMode: # -# The colo mode +# The COLO current mode. # -# @unknown: unknown mode +# @none: COLO is disabled. # -# @primary: master side +# @primary: COLO node in primary side. # -# @secondary: slave side +# @secondary: COLO node in slave side. # # Since: 2.8 ## { 'enum': 'COLOMode', - 'data': [ 'unknown', 'primary', 'secondary'] } + 'data': [ 'none', 'primary', 'secondary'] } ## # @FailoverStatus: