From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 9D5B81C0A8 for ; Thu, 12 Apr 2018 18:07:47 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Apr 2018 09:07:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,442,1517904000"; d="scan'208";a="47369730" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga001.jf.intel.com with ESMTP; 12 Apr 2018 09:07:45 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 12 Apr 2018 09:07:45 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 12 Apr 2018 09:07:45 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.115]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.149]) with mapi id 14.03.0319.002; Fri, 13 Apr 2018 00:07:42 +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" , "gaetan.rivet@6wind.com" , "hemant.agrawal@nxp.com" , "Chen, Junjie J" Thread-Topic: [PATCH v6 1/4] eal/vfio: add multiple container support Thread-Index: AQHT0i7XVso09ACnR0emf6knu/uleaP8o6EAgACkLXA= Date: Thu, 12 Apr 2018 16:07:41 +0000 Message-ID: References: <20180405180701.16853-4-xiao.w.wang@intel.com> <20180412071956.66178-1-xiao.w.wang@intel.com> <20180412071956.66178-2-xiao.w.wang@intel.com> <974c9cd0-87c4-6ab1-0787-9278a7379fda@intel.com> In-Reply-To: <974c9cd0-87c4-6ab1-0787-9278a7379fda@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDUyYzM2MGItYTMzMC00ODRiLWIzNzAtZTJlYmIyNmIxNTlhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJOQ2NGcDk2KzZTTU5cLzZOb2d3dVNJXC9RK25UWUFMb09qZG0zMmVRSStNUGJKMDREK2hXZ1h0Y0pKS0NIeVwvZ0FLIn0= 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 v6 1/4] eal/vfio: add multiple container support 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: Thu, 12 Apr 2018 16:07:48 -0000 SGkgQW5hdG9seSwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBCdXJh a292LCBBbmF0b2x5DQo+IFNlbnQ6IFRodXJzZGF5LCBBcHJpbCAx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