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 53472A04FF; Wed, 23 Mar 2022 08:08:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E40A941140; Wed, 23 Mar 2022 08:08:08 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id E587541104 for ; Wed, 23 Mar 2022 08:08:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648019287; x=1679555287; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=eBiGz7R9USfU9l0+WnBtdo85ay5NnUIoIqJX7NmvMyM=; b=kjDmk5kYVArDacbOkovRlwe8aESQP+pfgKTo7sZM1JXIHInr3PNc7gwg j1sLjh7tjplb7pxq2n5VRD1gZLmH0wiGUYynEgsNT7iCT1w7LYbUHZrRa eD5H2koTWF5ZzMVlAhaYfl4UrpnE12huTBF2xDkwmg/ps5XB6arn2GoyT RbYH9YsN9pz4YYoE/FIRjsYa0GvX8LCphQ/55phT+UIrTDfCkpsgBiYd4 CDOSKV3OjBT2rtCToeEBzv7LeWGZe3ecbDbxmKbFxspB19fDVBo1N+ggr RtTJTyhllyUCtKAMSCHjRywsEEbnIO9jBTpPU+e7mK5PSXnc06/JzRgaQ A==; X-IronPort-AV: E=McAfee;i="6200,9189,10294"; a="256862194" X-IronPort-AV: E=Sophos;i="5.90,203,1643702400"; d="scan'208";a="256862194" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2022 00:08:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,203,1643702400"; d="scan'208";a="583585140" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga001.jf.intel.com with ESMTP; 23 Mar 2022 00:08:05 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) 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; Wed, 23 Mar 2022 00:08:04 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 23 Mar 2022 15:07:57 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2308.021; Wed, 23 Mar 2022 15:07:56 +0800 From: "Pei, Andy" To: Maxime Coquelin , "dev@dpdk.org" CC: "Xia, Chenbo" , "Cao, Gang" , "Liu, Changpeng" Subject: RE: [PATCH v3 04/15] vdpa/ifc: add vdpa interrupt for blk device Thread-Topic: [PATCH v3 04/15] vdpa/ifc: add vdpa interrupt for blk device Thread-Index: AQHYPdRNYnO1vUxwT0GjjX8Heeg3RazMjQFg Date: Wed, 23 Mar 2022 07:07:56 +0000 Message-ID: <3d2270bc996e49f88e97dd2fe5da8b1e@intel.com> References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1643425417-215270-1-git-send-email-andy.pei@intel.com> <1643425417-215270-5-git-send-email-andy.pei@intel.com> <1fcc58e5-4775-e7c9-a5e9-65a86f02daca@redhat.com> In-Reply-To: <1fcc58e5-4775-e7c9-a5e9-65a86f02daca@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.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 SGkgTWF4aW1lLA0KDQpUaGFua3MgZm9yIHlvdXIgcmVwbHkgYW5kIG15IHJlcGx5IGlzIGlubGlu ZS4NCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IE1heGltZSBDb3F1ZWxpbiA8 bWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb20+IA0KU2VudDogVHVlc2RheSwgTWFyY2ggMjIsIDIw MjIgNjowNSBQTQ0KVG86IFBlaSwgQW5keSA8YW5keS5wZWlAaW50ZWwuY29tPjsgZGV2QGRwZGsu b3JnDQpDYzogWGlhLCBDaGVuYm8gPGNoZW5iby54aWFAaW50ZWwuY29tPjsgQ2FvLCBHYW5nIDxn YW5nLmNhb0BpbnRlbC5jb20+OyBMaXUsIENoYW5ncGVuZyA8Y2hhbmdwZW5nLmxpdUBpbnRlbC5j b20+DQpTdWJqZWN0OiBSZTogW1BBVENIIHYzIDA0LzE1XSB2ZHBhL2lmYzogYWRkIHZkcGEgaW50 ZXJydXB0IGZvciBibGsgZGV2aWNlDQoNCg0KDQpPbiAxLzI5LzIyIDA0OjAzLCBBbmR5IFBlaSB3 cm90ZToNCj4gRm9yIHRoZSBibGsgd2UgbmVlZCB0byByZWxheSBhbGwgdGhlIGNtZCBvZiBlYWNo IHF1ZXVlLg0KDQpUaGUgbWVzc2FnZSBpcyBub3QgY2xlYXIgdG8gbWUsIGRvIHlvdSBtZWFuICJG b3IgdGhlIGJsb2NrIGRldmljZSB0eXBlLCB3ZSBoYXZlIHRvIHJlbGF5IHRoZSBjb21tYW5kcyBv biBhbGwgcXVldWVzLiI/DQpBbmR5OiBZZXMuIEZvciBCTEsgZGV2aWNlLCBkZXZpY2UgY2FuIHdv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