From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C81C4A00C4; Tue, 26 Apr 2022 10:08:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A13FC40C35; Tue, 26 Apr 2022 10:08:56 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id B763540691 for ; Tue, 26 Apr 2022 10:08:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650960535; x=1682496535; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=fWgVOaykStiZb4l2rbRztCkuEnK+mFWzjG7JGZ6FAao=; b=lhm7r48aH7lxcKROOko+D1sK0f0hF62oDdXeLuciDH+uXyZbwFlU7q73 IvsJVLXD65FnHY82cu/oeUqlmC7Qbk8CNo7AWnxjD+LE1g+jXV05skkdL z+kscMTH4cjXRgbmk/R1aAjOmsM3/PGy71vVIK1/sdkpFAch0S53QaTif u9KiRIX3H1cW0E8hJc08oHxJL9VrFUIZl6Ne7pX7uDssBSYOur1EfA+JK D7hVuPfjPPHZs4lXQ9ohuQj4DZH0HPqKOGn9Cr+u6eVQF38zE6Nq06aX3 MNf+/8D6xOtxPE2ASFcc3kCZ777Jgqsy3cecQjcPtXtUQFPcVXjulisd5 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10328"; a="264338452" X-IronPort-AV: E=Sophos;i="5.90,290,1643702400"; d="scan'208";a="264338452" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 01:08:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,290,1643702400"; d="scan'208";a="538397157" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga002.jf.intel.com with ESMTP; 26 Apr 2022 01:08:54 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Tue, 26 Apr 2022 01:08:53 -0700 Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmsx604.amr.corp.intel.com ([10.18.126.84]) with mapi id 15.01.2308.027; Tue, 26 Apr 2022 01:08:53 -0700 From: "Pei, Andy" To: David Marchand CC: dev , "Xia, Chenbo" , Maxime Coquelin , "Cao, Gang" , "Liu, Changpeng" Subject: RE: [PATCH v6 03/16] vhost: add vhost msg support Thread-Topic: [PATCH v6 03/16] vhost: add vhost msg support Thread-Index: AQHYWKUWg9aKWqY3Fkmb/iZeErWw3q0B2D9A Date: Tue, 26 Apr 2022 08:08:53 +0000 Message-ID: <4ed3de7373d94811821609059d74ad5f@intel.com> References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1650530034-59744-1-git-send-email-andy.pei@intel.com> <1650530034-59744-4-git-send-email-andy.pei@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.401.20 dlp-reaction: no-action x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org SEkgRGF2aWQsDQoNClRoYW5rcyBmb3IgeW91ciByZXBseS4NCkkgd2lsbCBzZW5kIG91dCBhIHZl cnNpb24gdG8gYWRkcmVzcyB0aGF0Lg0KDQ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N0cnVjdCBydGVfdmRwYV9kZXZpY2UgKnZkcGFfZGV2 ID0gZGV2LT52ZHBhX2RldjsNCj4gPiArICAgICAgIGludCByZXQgPSAwOw0KPiANCj4gWW91IG11 c3QgY2hlY2sgaWYgdGhlcmUgaXMgYW55IGZkIGF0dGFjaGVkIHRvIHRoaXMgbWVzc2FnZS4NCj4g DQo+IA0KPiA+ICsNCj4gPiArICAgICAgIGlmICh2ZHBhX2Rldi0+b3BzLT5nZXRfY29uZmlnKSB7 DQo+ID4gKyAgICAgICAgICAgICAgIHJldCA9IHZkcGFfZGV2LT5vcHMtPmdldF9jb25maWcoZGV2 LT52aWQsDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN0 eC0+bXNnLnBheWxvYWQuY2ZnLnJlZ2lvbiwNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgY3R4LT5tc2cucGF5bG9hZC5jZmcuc2l6ZSk7DQo+ID4gKyAgICAg ICAgICAgICAgIGlmIChyZXQgIT0gMCkgew0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIGN0 eC0+bXNnLnNpemUgPSAwOw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIFZIT1NUX0xPR19D T05GSUcoRVJSLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IiglcykgZ2V0X2NvbmZpZygpIHJldHVybiBlcnJvciFcbiIsDQo+ID4gKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICBkZXYtPmlmbmFtZSk7DQo+ID4gKyAgICAgICAgICAg ICAgIH0NCj4gPiArICAgICAgIH0gZWxzZSB7DQo+ID4gKyAgICAgICAgICAgICAgIFZIT1NUX0xP R19DT05GSUcoRVJSLCAiKCVzKSBnZXRfY29uZmlnKCkgbm90IHN1cHBvcnR0ZWQhXG4iLA0KPiA+ ICsgICAgICAgICAgICAgICAgICAgICAgICA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