From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 04DECAAB5 for ; Mon, 16 Apr 2018 14:22:29 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Apr 2018 05:22:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,459,1517904000"; d="scan'208";a="33729744" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 16 Apr 2018 05:22:28 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 16 Apr 2018 05:22:28 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.146]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.149]) with mapi id 14.03.0319.002; Mon, 16 Apr 2018 20:22:25 +0800 From: "Wang, Xiao W" To: "Burakov, Anatoly" , "Yigit, Ferruh" CC: "dev@dpdk.org" , "maxime.coquelin@redhat.com" , "Wang, Zhihong" , "Bie, Tiwei" , "Tan, Jianfeng" , "Liang, Cunming" , "Daly, Dan" , "thomas@monjalon.net" , "Chen, Junjie J" Thread-Topic: [PATCH v7 1/5] vfio: extend data structure for multi container Thread-Index: AQHT1M9Xf8ZS2AQHskyy1IU0yK2q1qQCpGUAgACqJMA= Date: Mon, 16 Apr 2018 12:22:24 +0000 Message-ID: References: <20180412071956.66178-2-xiao.w.wang@intel.com> <20180415153349.62105-1-xiao.w.wang@intel.com> <20180415153349.62105-2-xiao.w.wang@intel.com> <9f41b581-ea27-51fb-dfbe-affd64d7996c@intel.com> In-Reply-To: <9f41b581-ea27-51fb-dfbe-affd64d7996c@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzYwMDIyMGMtM2Q2Ny00MjYxLTg3ZDYtODM0NzJlMDQ3OWE3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJRbTBmK0Nuc1VzNHN3VjRIazhDSSs0aGN6OGpvOCtKclJBUWdaXC90UkNcL3h5UG80WFo4ZFVMQ2Nwd0g1THVcLzF2In0= dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action 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 v7 1/5] vfio: extend data structure for multi container 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: Mon, 16 Apr 2018 12:22:30 -0000 SGkgQW5hdG9seSwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBCdXJh a292LCBBbmF0b2x5DQo+IFNlbnQ6IE1vbmRheSwgQXByaWwgMTYsIDIwMTggNjowMyBQTQ0KPiBU bzogV2FuZywgWGlhbyBXIDx4aWFvLncud2FuZ0BpbnRlbC5jb20+OyBZaWdpdCwgRmVycnVoDQo+ IDxmZXJydWgueWlnaXRAaW50ZWwuY29tPg0KPiBDYzogZGV2Q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