Received: from eggs.gnu.org ([2001:4830:134:3::10]:54809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSHjP-0000b8-8R for qemu-devel@nongnu.org; Wed, 27 Jul 2016 01:50:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSHjL-0006FD-92 for qemu-devel@nongnu.org; Wed, 27 Jul 2016 01:50:10 -0400 Received: from [59.151.112.132] (port=53942 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSHjK-0006D9-SB for qemu-devel@nongnu.org; Wed, 27 Jul 2016 01:50:07 -0400 References: <1467714580-17581-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> From: Zhang Chen Message-ID: Date: Wed, 27 Jul 2016 13:49:55 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC PATCH V3 0/3] filter-rewriter: introduce filter-rewriter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang , qemu devel Cc: "eddie . dong" , Li Zhijian On 07/27/2016 10:50 AM, Jason Wang wrote: > > > On 2016年07月27日 10:32, Zhang Chen wrote: >> Hi~ all~~ >> >> Anyone have some comments for this series? > > Will have a look at this. > > Btw. I wonder how this is tested, do we need a unit test for this? COLO-compare and filter-rewriter works normal depend on colo-frame. So, When colo-frame be merged I will send a colo-proxy unit test for all filter-mirror,filter-redirector,colo-compare,filter-rewriter. > >> >> We need more comments to improve COLO codes. >> >> >> Thanks >> >> Zhang Chen >> >> >> On 07/05/2016 06:29 PM, Zhang Chen wrote: >>> Filter-rewriter is a part of COLO project. >>> So this patch set depend on colo-compare. > > Interesting, I thought it can co-work with comparing, and the > communication were done through socket now. So I think technically the > filter itself could work without COLO? Filter-rewriter can run without COLO, but it no sense for other people. rewriter need TX tcp packet differ with RX tcp packet... In normal qemu we can't get the environment same with COLO. > >>> It will rewrite some of secondary packet to make >>> secondary guest's connection established successfully. >>> In this module we will rewrite tcp packet's ack to the secondary >>> from primary,and rewrite tcp packet's seq to the primary from >>> secondary. >>> >>> v3: >>> - fix typo >>> - add conn->syn_flag >>> - add some comments >>> - remove conn_list_lock >>> - fix offset set bug > > I think you can remove RFC in the next version so we can try to merge > it after one or several other iterations. OK~~ I will remove RFC in colo-compare and filter-rewriter. Thanks for your review~~ Zhang Chen > > Thanks > >>> >>> v2: >>> - add more comments about packet flows >>> - add some trace-event >>> - add seq offset ( = secondary_seq - primary_seq) >>> >>> v1: >>> - initial patch >>> >>> Zhang Chen (3): >>> filter-rewriter: introduce filter-rewriter initialization >>> filter-rewriter: track connection and parse packet >>> filter-rewriter: rewrite tcp packet to keep secondary connection >>> >>> net/Makefile.objs | 1 + >>> net/colo-base.c | 2 + >>> net/colo-base.h | 7 ++ >>> net/filter-rewriter.c | 262 >>> ++++++++++++++++++++++++++++++++++++++++++++++++++ >>> qemu-options.hx | 13 +++ >>> trace-events | 5 + >>> vl.c | 3 +- >>> 7 files changed, 292 insertions(+), 1 deletion(-) >>> create mode 100644 net/filter-rewriter.c >>> >> > > > > . > -- Thanks zhangchen