From patchwork Fri Oct 25 17:06:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Straub X-Patchwork-Id: 11212769 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 01FCE112B for ; Fri, 25 Oct 2019 17:26:09 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C9D9721872 for ; Fri, 25 Oct 2019 17:26:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=web.de header.i=@web.de header.b="H+xgh0u2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C9D9721872 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=web.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:34908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO3Lj-00072Q-Jy for patchwork-qemu-devel@patchwork.kernel.org; Fri, 25 Oct 2019 13:26:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43149) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO33A-0000yD-1Q for qemu-devel@nongnu.org; Fri, 25 Oct 2019 13:06:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iO338-0005gh-Si for qemu-devel@nongnu.org; Fri, 25 Oct 2019 13:06:55 -0400 Received: from mout.web.de ([212.227.17.11]:50615) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iO338-0005cC-JH for qemu-devel@nongnu.org; Fri, 25 Oct 2019 13:06:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1572023193; bh=swJni6b4V8pRAk84eLDd3KajcXs6Pvhgess3/vHrBUY=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=H+xgh0u2H/wAFORxkZDCUcm61I2TThjkp0xTq0hQ3ZHil+GPYM5Z7dvfavJygDH7s 9RhJSEmQzibMOLCiZwduZ+sIR/C7/cYgynbazIT6e3dU+SgMh74UutPFOQvTLlUclZ LcVvfefjpvNaspR1wmSqN4fbe4WntdPHMkloBS8o= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from luklap ([88.130.61.116]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M9GVO-1iHxRe3huA-00CeS7; Fri, 25 Oct 2019 19:06:33 +0200 Date: Fri, 25 Oct 2019 19:06:31 +0200 From: Lukas Straub To: qemu-devel Subject: [PATCH v7 0/4] colo: Add support for continuous replication Message-ID: MIME-Version: 1.0 X-Provags-ID: V03:K1:ir2Tllt7UTjwaNgP9n3MqVVRxUHpbyiSyEfbljDG87JfEd6Nofh Tjlvx2DLmMPuaPx+7iOLb5a6ofTGPr75PBxfZDu/4aAJ0o/jOnlTy+dOVLthi0tHFh6ulJu 680wDDTdfG9lz9jGJGTv+j+5peI/5VzgE81YnRBZyPWPo/PoB9j0FCXHSijUbbSB2gdMVsy O4G1l+nQx2NzRZ3+SRNSg== X-UI-Out-Filterresults: notjunk:1;V03:K0:3T8tkHj2uDQ=:IRlnrMRIG0gd2nG3yiyPPO mOYUWavR2+EZNr9ltO6Q1bChbX48WqjPnvDec/3LJFEaOH+9H7GnmAnL96MiDEzb+oWLiOnfr 7pbokNo+hbfGsPwf23MudZtUm2sZfRI+O9ciIXxHQxZrB7PIhcNC3LGFO6eEZIHCLScEVI84k pywjJ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AoRNyYOKBUBY OC2bZGFekHIR4a+kWpmM1qT8423llaeDYUm3KIVjCstD7URsW3sn0huCjN9U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.11 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , qemu-block , Wen Congyang , Jason Wang , Max Reitz , Zhang Chen , Xie Changlong Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Hello Everyone, These Patches add support for continuous replication to colo. This means that after the Primary fails and the Secondary did a failover, the Secondary can then become Primary and resume replication to a new Secondary. Regards, Lukas Straub v7: - clarify meaning of ip's in documentation and note that active and hidden images just need to be created once - reverted removal of bdrv_is_root_node(top_bs) in replication and adjusted the top-id= parameter in documentation acordingly v6: - documented the position= and insert= options - renamed replication test - clarified documentation by using different ip's for primary and secondary - added Reviewed-by tags v5: - change syntax for the position= parameter - fix spelling mistake v4: - fix checkpatch.pl warnings v3: - add test for replication changes - check if the filter to be inserted before/behind belongs to the same interface - fix the error message for the position= parameter - rename term "after" -> "behind" and variable "insert_before" -> "insert_before_flag" - document the quorum node on the secondary side - simplify quorum parameters in documentation - remove trailing spaces in documentation - clarify the testing procedure in documentation v2: - fix email formating - fix checkpatch.pl warnings - fix patchew error - clearer commit messages Lukas Straub (4): block/replication.c: Ignore requests after failover tests/test-replication.c: Add test for for secondary node continuing replication net/filter.c: Add Options to insert filters anywhere in the filter list colo: Update Documentation for continuous replication block/replication.c | 35 +++++- docs/COLO-FT.txt | 224 +++++++++++++++++++++++++++---------- docs/block-replication.txt | 28 +++-- include/net/filter.h | 2 + net/filter.c | 92 ++++++++++++++- qemu-options.hx | 31 ++++- tests/test-replication.c | 52 +++++++++ 7 files changed, 389 insertions(+), 75 deletions(-) --- 2.20.1