From patchwork Sun Sep 15 19:19:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Straub X-Patchwork-Id: 11146083 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 900681599 for ; Sun, 15 Sep 2019 19:29:42 +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 6799920873 for ; Sun, 15 Sep 2019 19:29:42 +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="U0/GS2YT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6799920873 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]:56592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9aDN-0003kZ-E8 for patchwork-qemu-devel@patchwork.kernel.org; Sun, 15 Sep 2019 15:29:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39569) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9a4R-0003bf-Se for qemu-devel@nongnu.org; Sun, 15 Sep 2019 15:20:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9a4Q-00012i-V7 for qemu-devel@nongnu.org; Sun, 15 Sep 2019 15:20:27 -0400 Received: from mout.web.de ([212.227.15.14]:36371) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9a4Q-000112-M3 for qemu-devel@nongnu.org; Sun, 15 Sep 2019 15:20:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1568575195; bh=ppWNVTe6sizP2ChzFyAocsWaZ00+Z0YbkfJfWzg8wOo=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=U0/GS2YTymIVp6kPrtVOF34Q9WBQWfIs1yuH5+hda9pLdZVTDS7RzV5wCSAiG0pW/ I1aTuhP8wTY/g3wdCZV4fYxbZO/lpiaTDe3V+E2rNFtaFaTekyukbMmXkGvTs44rcp 5071GXenibbNQqtx0FaoHIP1YfaOSMftSGkgMyF4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from luklap ([88.130.61.53]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MN87U-1i2zPn17Oq-006jR5; Sun, 15 Sep 2019 21:19:55 +0200 Date: Sun, 15 Sep 2019 21:19:50 +0200 From: Lukas Straub To: qemu-devel Message-ID: MIME-Version: 1.0 X-Provags-ID: V03:K1:afOcVmkcVjSwCj9QnuphNDfip6nfzVGKyItYe92gZ9RHEv7krDu 3ugYjb9bOq4Yvl17Se1Jh5JFZzFHm5FUrvCjmXjk8Rr1h79Qhg7Coa5UYJOVA+NtW9C7aH9 LEwdPj7Q33L9LTPPN0DHaWTNky3EZYdXjqGUOv9XMFWgvzBb1DSucamZH+KoLgSm3Sn0fiG bQmuQuSc3YOu+YLxzzNLQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:TNIdZaQIBzg=:tH0P0HyRgJGwCTNm+IStj2 v0mIjOs/4OBpuSlkebczyYfARK3QTPraoL8N9dxB0LkSy3/P8bj6XSr33drhgfr8L2dz0wBbT QmGEddOGUXNxDBQAvc2VA/vOZSM1MGOlJECFv8K4L94xdzdDS6Man7xIbS7ORdpQ9Yj4KIdoP W2+qt4dTch9yXGrZqBYBO6uH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h3MfbAiObXj0+AjF t+B53FJV//8pPDIXJqs7tcNcIf/IyeK4JtVhwHejFTh0VTgjq3NDwogK/Mmc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.14 Subject: [Qemu-devel] [PATCH v5 0/4] colo: Add support for continuous replication 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: kwolf@redhat.com, Wen Congyang , Jason Wang , mreitz@redhat.com, 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. On a side note, I wrote a Pacemaker Resource Agent for colo which I will post when its ready. I have to say it's quite fun to randomly kill a Node, wait for resync and repeat and see how the VM stays alive all the time. :) Regards, Lukas Straub 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 ignoring requests after failover net/filter.c: Add Options to insert filters anywhere in the filter list colo: Update Documentation for continuous replication block/replication.c | 38 ++++++- docs/COLO-FT.txt | 212 +++++++++++++++++++++++++++---------- docs/block-replication.txt | 28 +++-- include/net/filter.h | 2 + net/filter.c | 92 +++++++++++++++- qemu-options.hx | 10 +- tests/test-replication.c | 52 +++++++++ 7 files changed, 358 insertions(+), 76 deletions(-) --- 2.20.1