From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 098372FDD; Fri, 8 Dec 2017 09:52:03 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Dec 2017 00:52:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,377,1508828400"; d="scan'208";a="916968" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga008.fm.intel.com with ESMTP; 08 Dec 2017 00:52:02 -0800 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 8 Dec 2017 00:52:02 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 8 Dec 2017 00:52:01 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by shsmsx102.ccr.corp.intel.com ([169.254.2.175]) with mapi id 14.03.0319.002; Fri, 8 Dec 2017 16:51:57 +0800 From: "Tan, Jianfeng" To: Maxime Coquelin , Victor Kaplansky , "dev@dpdk.org" , "yliu@fridaylinux.org" , "Bie, Tiwei" CC: "stable@dpdk.org" , "jfreiman@redhat.com" Thread-Topic: [PATCH] vhost_user: protect active rings from async ring changes Thread-Index: AQHTbpnxJQ34Q0Trw06BgnNCg0sNi6M3lqyw//+K7wCAAYTXcP//9U4AgACJ7ZA= Date: Fri, 8 Dec 2017 08:51:57 +0000 Message-ID: References: <20171206135329.652-1-vkaplans@redhat.com> <00a522dc-2287-b3ed-7ca4-e666f6217c91@redhat.com> <7352a09d-f90d-5b3a-51f9-bfc82faf744e@redhat.com> In-Reply-To: <7352a09d-f90d-5b3a-51f9-bfc82faf744e@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH] vhost_user: protect active rings from async ring changes X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2017 08:52:04 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogTWF4aW1lIENvcXVlbGlu IFttYWlsdG86bWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb21dDQo+IFNlbnQ6IEZyaWRheSwgRGVj ZW1iZXIgOCwgMjAxNyA0OjM2IFBNDQo+IFRvOiBUYW4sIEppYW5mZW5nOyBWaWN0b3IgS2FwbGFu c2t5OyBkZXZAZHBkay5vcmc7IHlsaXVAZnJpZGF5bGludXgub3JnOyBCaWUsDQo+IFRpd2VpDQo+ IENjOiBzdGFibGVAZHBkay5vcmc7IGpmcmVpbWFuQHJlZGhhdC5jb20NCj4gU3ViamVjdDogUmU6 IFtQQVRDSF0gdmhvc3RfdXNlcjogcHJvdGVjdCBhY3RpdmUgcmluZ3MgZnJvbSBhc3luYyByaW5n DQo+IGNoYW5nZXMNCj4gDQo+IA0KPiANCj4gT24gMTIvMDgvMjAxNyAwMzoxNCBBTSwgVGFuLCBK aWFuZmVuZyB3cm90ZToNCj4gPg0KPiA+DQo+ID4+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0t DQo+ID4+IEZyb206IE1heGltZSBDb3F1ZWxpbiBbbWFpbHRvOm1heGltZS5jb3F1ZWxpbkByZWRo YXQuY29tXQ0KPiA+PiBTZW50OiBUaHVyc2RheS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