From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id A09551B745 for ; Tue, 17 Oct 2017 03:24:48 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP; 16 Oct 2017 18:24:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,389,1503385200"; d="scan'208";a="161223805" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga005.jf.intel.com with ESMTP; 16 Oct 2017 18:24:46 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 16 Oct 2017 18:24:32 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 16 Oct 2017 18:24:31 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Tue, 17 Oct 2017 09:24:29 +0800 From: "Yao, Lei A" To: Maxime Coquelin , "'dev@dpdk.org'" , "Horton, Remy" , "Bie, Tiwei" , "'yliu@fridaylinux.org'" CC: "'mst@redhat.com'" , "'jfreiman@redhat.com'" , "'vkaplans@redhat.com'" , "'jasowang@redhat.com'" Thread-Topic: [dpdk-dev] [PATCH v3 15/19] vhost: postpone rings addresses translation Thread-Index: AQHTQ/W6Kobd20mIoEetykH84hGngqLhaOrAgASV2kCAAAeGgP//s1qAgAAQtgCAAXdDIA== Date: Tue, 17 Oct 2017 01:24:28 +0000 Message-ID: <2DBBFF226F7CF64BAFCA79B681719D953A2BC7EE@shsmsx102.ccr.corp.intel.com> References: <20171005083627.27828-1-maxime.coquelin@redhat.com> <20171005083627.27828-16-maxime.coquelin@redhat.com> <2DBBFF226F7CF64BAFCA79B681719D953A2A66FC@SHSMSX151.ccr.corp.intel.com> <1105ba3f-1f6f-d8f2-0299-2d26158790b8@redhat.com> <2DBBFF226F7CF64BAFCA79B681719D953A2ADA3F@SHSMSX151.ccr.corp.intel.com> <2DBBFF226F7CF64BAFCA79B681719D953A2B92CC@shsmsx102.ccr.corp.intel.com> <2DBBFF226F7CF64BAFCA79B681719D953A2B92F7@shsmsx102.ccr.corp.intel.com> <3e1f7960-711a-39fd-2a2f-ddea47df36d0@redhat.com> In-Reply-To: <3e1f7960-711a-39fd-2a2f-ddea47df36d0@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTgzZTVmN2EtOGUxNC00Nzg0LThlM2QtZGJmOTczMmEyNDAzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlVHSVwvcnZRK1wvNk80VHhnQ3ZFUG9EMDZGdWRjWGhLQk1Hak1tcFdxMVhIaz0ifQ== x-ctpclassification: CTP_IC 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 v3 15/19] vhost: postpone rings addresses translation 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-Subscrib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aWQsIGludCBmZCkNCj4gICAgICAgICAgICAgICAgICB2 aG9zdF91c2VyX3NldF92cmluZ19udW0oZGV2LCAmbXNnKTsNCj4gICAgICAgICAgICAgICAgICBi cmVhazsNCj4gICAgICAgICAgY2FzZSBWSE9TVF9VU0VSX1NFVF9WUklOR19BRERSOg0KPiAtICAg ICAgICAgICAgICAgdmhvc3RfdXNlcl9zZXRfdnJpbmdfYWRkcihkZXYsICZtc2cpOw0KPiArICAg ICAgICAgICAgICAgdmhvc3RfdXNlcl9zZXRfdnJpbmdfYWRkcigmZGV2LCAmbXNnKTsNCj4gICAg ICAgICAgICAgICAgICBicmVhazsNCj4gICAgICAgICAgY2FzZSBWSE9TVF9VU0VSX1NFVF9WUklO R19CQVNFOg0KPiAgICAgICAgICAgICAgICAgIHZob3N0X3VzZXJfc2V0X3ZyaW5nX2Jhc2UoZGV2 LCAmbXNnKTsNCg==