From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, PDS_BAD_THREAD_QP_64,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97FC5C433B4 for ; Wed, 28 Apr 2021 03:28:07 +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 E1DF461408 for ; Wed, 28 Apr 2021 03:28:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1DF461408 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:42640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbaru-0007GL-1O for qemu-devel@archiver.kernel.org; Tue, 27 Apr 2021 23:28:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbaqt-0006bs-PA for qemu-devel@nongnu.org; Tue, 27 Apr 2021 23:27:04 -0400 Received: from mga12.intel.com ([192.55.52.136]:12388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbaqm-0004OI-9f for qemu-devel@nongnu.org; Tue, 27 Apr 2021 23:27:03 -0400 IronPort-SDR: KvWNXk1l7qX6284axSMmIYKyZyDibekRfb1gzeZ0oPEpUKSIdBM+XZB5TNmLMHwBf5XKWAmV13 zN5ba1ug6liw== X-IronPort-AV: E=McAfee;i="6200,9189,9967"; a="176127522" X-IronPort-AV: E=Sophos;i="5.82,257,1613462400"; d="scan'208";a="176127522" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 20:26:50 -0700 IronPort-SDR: QDzlOmTT+hAbLHMaM0bEyP7DoFE5Rt9tOua0JhfREDIvQ8hnJj9XFgC1J8D84NnUAFxujSSuhj q95BWPjM+opg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,257,1613462400"; d="scan'208";a="393278291" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga007.fm.intel.com with ESMTP; 27 Apr 2021 20:26:50 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 27 Apr 2021 20:26:49 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 28 Apr 2021 11:26:48 +0800 Received: from shsmsx605.ccr.corp.intel.com ([10.109.6.215]) by SHSMSX605.ccr.corp.intel.com ([10.109.6.215]) with mapi id 15.01.2106.013; Wed, 28 Apr 2021 11:26:48 +0800 From: "Zhang, Chen" To: Jason Wang , qemu-dev , "Eric Blake" , "Dr. David Alan Gilbert" , Markus Armbruster , =?iso-8859-1?Q?Daniel_P=2E_Berrang=E9?= , Gerd Hoffmann , Li Zhijian Subject: RE: [PATCH V6 0/6] Passthrough specific network traffic in COLO Thread-Topic: [PATCH V6 0/6] Passthrough specific network traffic in COLO Thread-Index: AQHXNfjlRIjnq99tzk2zKjLrwVWDearJUGqQ Date: Wed, 28 Apr 2021 03:26:48 +0000 Message-ID: <17dd014de70d4181858198d0187e4fea@intel.com> References: <20210420151537.64360-1-chen.zhang@intel.com> In-Reply-To: <20210420151537.64360-1-chen.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.5.1.3 dlp-reaction: no-action x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received-SPF: pass client-ip=192.55.52.136; envelope-from=chen.zhang@intel.com; helo=mga12.intel.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Lukas Straub , Zhang Chen Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Please give me for comments for this series, Ping.... Thanks Chen > -----Original Message----- > From: Zhang, Chen > Sent: Tuesday, April 20, 2021 11:16 PM > To: Jason Wang ; qemu-dev devel@nongnu.org>; Eric Blake ; Dr. David Alan > Gilbert ; Markus Armbruster ; > Daniel P. Berrang=E9 ; Gerd Hoffmann > ; Li Zhijian > Cc: Zhang Chen ; Zhang, Chen > ; Lukas Straub > Subject: [PATCH V6 0/6] Passthrough specific network traffic in COLO >=20 > Due to some real user scenarios don't need to monitor all traffic. > And qemu net-filter also need function to more detailed flow control. > This series give user ability to passthrough kinds of COLO network stream= . >=20 > For example, windows guest user want to enable windows remote desktop > to touch guest(UDP/TCP 3389), This case use UDP and TCP mixed, and the tc= p > part payload always different caused by real desktop display data(for gue= st > time/ mouse display....). >=20 > Another case is some real user application will actively transmit informa= tion > include guest time part, primary guest send data with time 10:01.000, At = the > same time secondary guest send data with time 10:01.001, it will always > trigger COLO checkpoint(live migrate) to drop guest performance. >=20 > V6: > - Change QAPI IPFlowSpec protocol from enum to str. > - Use getprotobyname to handle the protocols. > - Optimize code in net. >=20 > V5: > - Squash original 1-3 QAPI patches together. > - Rename some data structures to avoid misunderstanding. > - Reuse InetSocketAddressBase in IPFlowSpec. > - Add new function in util/qemu-sockets.c to parse > InetSocketAddressBase. > - Update HMP command define to reuse current code. > - Add more comments. >=20 > V4: > - Fix QAPI code conflict for V6.0 merged patches. > - Note this feature for V6.1. >=20 > V3: > - Add COLO passthrough list lock. > - Add usage demo and more comments. >=20 > V2: > - Add the n-tuple support. > - Add some qapi definitions. > - Support multi colo-compare objects. > - Support setup each rules for each objects individually. > - Clean up COLO compare definition to .h file. > - Rebase HMP command for stable tree. > - Add redundant rules check. >=20 >=20 > Zhang Chen (6): > qapi/net: Add IPFlowSpec and QMP command for COLO passthrough > util/qemu-sockets.c: Add inet_parse_base to handle > InetSocketAddressBase > hmp-commands: Add new HMP command for COLO passthrough > net/colo-compare: Move data structure and define to .h file. > net/colo-compare: Add passthrough list to CompareState > net/net.c: Add handler for COLO passthrough connection >=20 > hmp-commands.hx | 26 +++++++ > include/monitor/hmp.h | 2 + > include/qemu/sockets.h | 1 + > monitor/hmp-cmds.c | 82 ++++++++++++++++++++ > net/colo-compare.c | 162 +++++++++++----------------------------- > net/colo-compare.h | 118 +++++++++++++++++++++++++++++ > net/net.c | 166 +++++++++++++++++++++++++++++++++++++++++ > qapi/net.json | 68 +++++++++++++++++ > util/qemu-sockets.c | 14 ++++ > 9 files changed, 519 insertions(+), 120 deletions(-) >=20 > -- > 2.25.1