From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 09B3B7CDE; Tue, 12 Dec 2017 06:25:11 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2017 21:25:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,394,1508828400"; d="scan'208";a="2060411" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 11 Dec 2017 21:25:10 -0800 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Dec 2017 21:25:10 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Dec 2017 21:25:09 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Tue, 12 Dec 2017 13:25:08 +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//9U4AgACJ7ZD//5DjAADPZSrA Date: Tue, 12 Dec 2017 05:25:07 +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: 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-dev] [PATCH] vhost_user: protect active rings from async ring changes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2017 05:25:12 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogTWF4aW1lIENvcXVlbGlu IFttYWlsdG86bWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb21dDQo+IFNlbnQ6IEZyaWRheSwgRGVj ZW1iZXIgOCwgMjAxNyA2OjEyIFBNDQo+IFRvOiBUYW4sIEppYW5mZW5nOyBWaWN0b3IgS2FwbGFu c2t5OyBkZXZAZHBkay5vcmc7IHlsaXVAZnJpZGF5bGludXgub3JnOyBCaWUsDQo+IFRpd2VpDQo+ IENjOiBzdGFibGVAZHBkay5vcmc7IGpmcmVpbWFuQHJlZGhhdC5jb20NCj4gU3ViamVjdDogUmU6 IFtQQVRDSF0gdmhvc3RfdXNlcjogcHJvdGVjdCBhY3RpdmUgcmluZ3MgZnJvbSBhc3luYyByaW5n DQo+IGNoYW5nZXMNCj4gDQo+IEhpIEppYW5mZW5nLA0KPiANCj4gT24gMTIvMDgvMjAxNyAwOTo1 MSBBTSwgVGFuLCBKaWFuZmVuZyB3cm90ZToNCj4gPg0KPiA+DQo+ID4+IC0tLS0tT3JpZ2luYWwg TWVzc2FnZS0tLS0tDQo+ID4+IEZyb206IE1heGltZSBDb3F1ZWxpbiBbbWFpbHRvOm1heGltZS5j b3F1ZWxpbkByZWRoYXQuY29tXQ0KPiA+PiBTZW50OiBGcmlkYXksIERlY2VtYmV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