From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A9BF0A0503 for ; Thu, 31 Mar 2022 12:23:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A118D428F1; Thu, 31 Mar 2022 12:23:38 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id D0D7540DF6; Thu, 31 Mar 2022 12:23:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648722216; x=1680258216; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=NetwVsFTcYdeFeLjILSxxPFoxfhW2bUOcu+Y6HL+118=; b=joFUrpABFiMgeb9fO4W7arzAMAeHsTxaDe5vTZqylFoF08/JCyJRxDVQ BbQyQqR3nugQx0s2YKd2g15QTIzt2OWIAGz6qXZ3LCXalEBvpA3RiCg41 0O/DKkahcCFptAx36lg7hrrWtvozf/FHOMInK+NmQweo5C7tiWuc6Yzmo W71yTLq3MRjXAocfgo+EVUIAE5X0EORlYBqomR160HogZnRFIjQgO9zIl srslFSSWKrC8UvrbuS91SaKSIlZSuQfDThtFQJEHRZPZp7WB/7Q6EfXtw sOKRilJ/ROgblpQD6WM1gUhf424uQiiKt21/VB4qgFR0N3/3/HfOQNS1D g==; X-IronPort-AV: E=McAfee;i="6200,9189,10302"; a="259970452" X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="259970452" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 03:23:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="788360076" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga006.fm.intel.com with ESMTP; 31 Mar 2022 03:23:33 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 31 Mar 2022 03:23:33 -0700 Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmsx605.amr.corp.intel.com ([10.18.126.85]) with mapi id 15.01.2308.027; Thu, 31 Mar 2022 03:23:33 -0700 From: "Hu, Jiayu" To: Maxime Coquelin , David Marchand , "dev@dpdk.org" CC: "Xia, Chenbo" , "Wang, YuanX" , "Ding, Xuan" , "stable@dpdk.org" , Patrick Fu Subject: RE: [RFC PATCH v2 4/9] vhost: fix async access Thread-Topic: [RFC PATCH v2 4/9] vhost: fix async access Thread-Index: AQHYRD0f+hSOjieHJEiOTMJs5KXPEazZl6KA//+yecA= Date: Thu, 31 Mar 2022 10:23:33 +0000 Message-ID: References: <20220328121758.26632-1-david.marchand@redhat.com> <20220330134956.18927-1-david.marchand@redhat.com> <20220330134956.18927-5-david.marchand@redhat.com> <4c729841-7599-d94b-4104-2a4f78f2e961@redhat.com> In-Reply-To: <4c729841-7599-d94b-4104-2a4f78f2e961@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.401.20 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4g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