qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>,
	qemu devel <qemu-devel@nongnu.org>
Cc: Li Zhijian <lizhijian@cn.fujitsu.com>,
	Wen Congyang <wency@cn.fujitsu.com>,
	zhanghailiang <zhang.zhanghailiang@huawei.com>,
	"eddie . dong" <eddie.dong@intel.com>,
	"Dr . David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [Qemu-devel] [PATCH V11 0/9] Introduce COLO-compare and filter-rewriter
Date: Tue, 2 Aug 2016 16:14:55 +0800	[thread overview]
Message-ID: <93b51fcd-53b3-88df-cde8-4d2b85c45fa7@redhat.com> (raw)
In-Reply-To: <1469700748-19754-1-git-send-email-zhangchen.fnst@cn.fujitsu.com>



On 2016年07月28日 18:12, Zhang Chen wrote:
> COLO-compare is a part of COLO project. It is used
> to compare the network package to help COLO decide
> whether to do checkpoint.
>
> Filter-rewriter is a part of COLO project too.
> 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.
>
> This series depend on
> [PATCH V3] qemu-char: Add qemu_chr_add_handlers_full() for GMaincontext
>
> The full version in this github:
> https://github.com/zhangckid/qemu/tree/colo-v2.7-proxy-mode-compare-and-rewriter-jul28

Thanks for the series, I've finished v10's reviewing, and reply there. 
Looks like most comments apply to this series too. So I won't reply it 
again, please see the comments there. For filter-rewriter part, I will 
reply in this version.

Thanks

>
> v11:
>    - Make patch 5 to a independent patch series.
>      [PATCH V3] qemu-char: Add qemu_chr_add_handlers_full() for GMaincontext
>    - For Jason's comments, merge filter-rewriter to this series.
>      (patch 7,8,9)
>    - Add reverse_connection_key()
>    - remove conn_list in filter-rewriter
>    - remove unprocessed_connections
>    - add some comments
>
> v10:
>    - fix typo
>    - Should we make patch 5 independent with this series?
>      This patch just add a API for qemu-char.
>
> v9:
>   p5:
>    - use chr_update_read_handler_full() replace
>      the chr_update_read_handler()
>    - use io_watch_poll_prepare_full() replace
>      the io_watch_poll_prepare()
>    - use io_watch_poll_funcs_full replace
>      the io_watch_poll_funcs
>    - avoid code duplication
>
> v8:
>   p5:
>    - add new patch:
>      qemu-char: Add qemu_chr_add_handlers_full() for GMaincontext
>
> v7:
>   p5:
>     - add [PATCH]qemu-char: Fix context for g_source_attach()
>       in this patch series.
>
> v6:
>   p6:
>     - add more commit log.
>     - fix icmp comparison to compare all packet.
>
>   p5:
>     - add more cpmments in commit log.
>     - change REGULAR_CHECK_MS to REGULAR_PACKET_CHECK_MS
>     - make check old packet independent to compare thread
>     - remove thread_status
>
>   p4:
>     - change this patch only about
>       Connection and ConnectionKey.
>     - add some comments in commit log.
>     - remove mode in fill_connection_key().
>     - fix some comments and bug.
>     - move colo_conn_state to patch of
>       "work with colo-frame"
>     - remove conn_list_lock.
>     - add MAX_QUEUE_SIZE, if primary_list or
>       secondary_list biger than MAX_QUEUE_SIZE
>       we will drop packet.
>
>   p3:
>     - add new independent kernel jhash patch.
>
>   p2:
>     - add new independent colo-base patch.
>
>   p1:
>     - add a ascii figure and some comments to explain it
>     - move trace.h to p2
>     - move QTAILQ_HEAD(, CompareState) net_compares to
>       patch of "work with colo-frame"
>     - add some comments in qemu-option.hx
>
>
> v5:
>   p3:
>      - comments from Jason
>        we poll and handle chardev in comapre thread,
>        Through this way, there's no need for extra
>        synchronization with main loop
>        this depend on another patch:
>        qemu-char: Fix context for g_source_attach()
>      - remove QemuEvent
>   p2:
>      - remove conn->list_lock
>   p1:
>      - move compare_pri/sec_chr_in to p3
>      - move compare_chr_send to p2
>
> v4:
>   p4:
>      - add some comments
>      - fix some trace-events
>      - fix tcp compare error
>   p3:
>      - add rcu_read_lock().
>      - fix trace name
>      - fix jason's other comments
>      - rebase some Dave's branch function
>   p2:
>      - colo_compare_connection() change g_queue_push_head() to
>      - g_queue_push_tail() match to sorted order.
>      - remove pkt->s
>      - move data structure to colo-base.h
>      - add colo-base.c reuse codes for filter-rewriter
>      - add some filter-rewriter needs struct
>      - depends on previous SocketReadState patch
>   p1:
>      - except move qemu_chr_add_handlers()
>        to colo thread
>      - remove class_finalize
>      - remove secondary arp codes
>      - depends on previous SocketReadState patch
>
> v3:
>    - rebase colo-compare to colo-frame v2.7
>    - fix most of Dave's comments
>      (except RCU)
>    - add TCP,UDP,ICMP and other packet comparison
>    - add trace-event
>    - add some comments
>    - other bug fix
>    - add RFC index
>    - add usage in patch 1/4
>
> v2:
>    - add jhash.h
>
> v1:
>    - initial patch
>
>
> Zhang Chen (9):
>    colo-compare: introduce colo compare initialization
>    colo-base: add colo-base to define and handle packet
>    Jhash: add linux kernel jhashtable in qemu
>    colo-compare: track connection and enqueue packet
>    colo-compare: introduce packet comparison thread
>    colo-compare: add TCP,UDP,ICMP packet comparison
>    filter-rewriter: introduce filter-rewriter initialization
>    filter-rewriter: track connection and parse packet
>    filter-rewriter: rewrite tcp packet to keep secondary connection
>
>   include/qemu/jhash.h  |  61 ++++
>   net/Makefile.objs     |   3 +
>   net/colo-base.c       | 199 +++++++++++++
>   net/colo-base.h       |  76 +++++
>   net/colo-compare.c    | 763 ++++++++++++++++++++++++++++++++++++++++++++++++++
>   net/filter-rewriter.c | 272 ++++++++++++++++++
>   qemu-options.hx       |  51 ++++
>   trace-events          |  14 +
>   vl.c                  |   4 +-
>   9 files changed, 1442 insertions(+), 1 deletion(-)
>   create mode 100644 include/qemu/jhash.h
>   create mode 100644 net/colo-base.c
>   create mode 100644 net/colo-base.h
>   create mode 100644 net/colo-compare.c
>   create mode 100644 net/filter-rewriter.c
>

      parent reply	other threads:[~2016-08-02  8:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-28 10:12 [Qemu-devel] [PATCH V11 0/9] Introduce COLO-compare and filter-rewriter Zhang Chen
2016-07-28 10:12 ` [Qemu-devel] [PATCH V11 1/9] colo-compare: introduce colo compare initialization Zhang Chen
2016-07-28 10:12 ` [Qemu-devel] [PATCH V11 2/9] colo-base: add colo-base to define and handle packet Zhang Chen
2016-07-28 10:12 ` [Qemu-devel] [PATCH V11 3/9] Jhash: add linux kernel jhashtable in qemu Zhang Chen
2016-07-28 10:12 ` [Qemu-devel] [PATCH V11 4/9] colo-compare: track connection and enqueue packet Zhang Chen
2016-07-28 10:12 ` [Qemu-devel] [PATCH V11 5/9] colo-compare: introduce packet comparison thread Zhang Chen
2016-07-28 10:12 ` [Qemu-devel] [PATCH V11 6/9] colo-compare: add TCP, UDP, ICMP packet comparison Zhang Chen
2016-07-28 10:12 ` [Qemu-devel] [PATCH V11 7/9] filter-rewriter: introduce filter-rewriter initialization Zhang Chen
2016-07-28 10:12 ` [Qemu-devel] [PATCH V11 8/9] filter-rewriter: track connection and parse packet Zhang Chen
2016-08-02  8:23   ` Jason Wang
2016-08-02 10:38     ` Zhang Chen
2016-07-28 10:12 ` [Qemu-devel] [PATCH V11 9/9] filter-rewriter: rewrite tcp packet to keep secondary connection Zhang Chen
2016-08-02  8:14 ` Jason Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=93b51fcd-53b3-88df-cde8-4d2b85c45fa7@redhat.com \
    --to=jasowang@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=eddie.dong@intel.com \
    --cc=lizhijian@cn.fujitsu.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wency@cn.fujitsu.com \
    --cc=zhang.zhanghailiang@huawei.com \
    --cc=zhangchen.fnst@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).