From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D79512BAE for ; Tue, 22 May 2018 12:19:58 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2018 03:19:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,429,1520924400"; d="scan'208";a="57415347" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 22 May 2018 03:19:57 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 22 May 2018 03:19:57 -0700 Received: from lcsmsx152.ger.corp.intel.com (10.186.165.231) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 22 May 2018 03:19:57 -0700 Received: from hasmsx105.ger.corp.intel.com ([169.254.1.197]) by LCSMSX152.ger.corp.intel.com ([10.186.165.231]) with mapi id 14.03.0319.002; Tue, 22 May 2018 13:19:54 +0300 From: "Stojaczyk, DariuszX" To: Maxime Coquelin , "dev@dpdk.org" , "Bie, Tiwei" , Tetsuya Mukawa , Thomas Monjalon CC: "yliu@fridaylinux.org" , Stefan Hajnoczi , "Harris, James R" Thread-Topic: [RFC v2] vhost: new rte_vhost API proposal Thread-Index: AQHT7on2huGy3KtQDE+XGzZuey1czqQ1TxGAgAYiPpA= Date: Tue, 22 May 2018 10:19:53 +0000 Message-ID: References: <1525958573-184361-1-git-send-email-dariuszx.stojaczyk@intel.com> <1526648465-62579-1-git-send-email-dariuszx.stojaczyk@intel.com> <27ce772e-9f01-dff9-1f82-b99924efa950@redhat.com> In-Reply-To: <27ce772e-9f01-dff9-1f82-b99924efa950@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.104.59.19] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC v2] vhost: new rte_vhost API proposal 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, 22 May 2018 10:19:59 -0000 SGkgTWF4aW1lLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1heGlt ZSBDb3F1ZWxpbiBbbWFpbHRvOm1heGltZS5jb3F1ZWxpbkByZWRoYXQuY29tXQ0KPiBTZW50OiBG cmlkYXksIE1heSAxOCwgMjAxOCA5OjUxIFBNDQo+IE9uIDA1LzE4LzIwMTggMDM6MDEgUE0sIERh cml1c3ogU3RvamFjenlrIHdyb3RlOg0KPiA+IHJ0ZV92aG9zdCBpcyBub3Qgdmhvc3QtdXNlciBz cGVjIGNvbXBsaWFudC4gU29tZSBWaG9zdCBkcml2ZXJzIGhhdmUNCj4gPiBiZWVuIGFscmVhZHkg Y29uZmlybWVkIG5vdCB0byB3b3JrIHdpdGggcnRlX3Zob3N0LiB2aXJ0aW8tdXNlci1zY3NpLXBj aQ0KPiA+IGluIFFFTVUgMi4xMiBkb2Vzbid0IGZ1bGx5IGluaXRpYWxpemUgaXRzIG1hbmFnZW1l bnQgcXVldWVzIGF0IFNlYUJJT1MNCj4gPiBzdGFnZS4gVGhpcyBpcyBwZXJmZWN0bHkgZmluZSBm cm9tIHRoZSBWaG9zdC11c2VyIHNwZWMgcGVyc3BlY3RpdmUsIGJ1dA0KPiA+IGRvZXNuJ3QgbWVl dCBydGVfdmhvc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