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 07FBCA04FF; Wed, 23 Mar 2022 08:43:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 95E1D41140; Wed, 23 Mar 2022 08:43:04 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 9ABA941104 for ; Wed, 23 Mar 2022 08:43:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648021382; x=1679557382; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=WMl1dtFNbOoLtY6YsYjxy6C7MZU5Jv9Pl/hn9Hu07QI=; b=FdIWLLNgELxKXMOmitTsUSExIdTxA8ah/FOAt1f1C7SgFI2AT7A2lm6t KDFdZ6g/G2r/i2CLfPP9d3YjSXfynU5eO18noO/9zrtQ6oe8ljc8p63VN 9x8iwri/rONPCvPUUZWtWAPOFP8PMRdcTsNQPx7UHpEraGMCnD3eXEaFT 6NrYmNMhvrsRmmJJWe2c0/ku7OUBE+N88t2/Ugd5ykpn+wODWwEaDvik2 xjKVbqnRET4mDdxEgz5iK4z8YWQ1bxoRJYYEfWGiDN/+GcG5mQEyQfYUU WUjYdVcNzsrt5hdbEr4sig0GfXppepgM2eBEZDHCxCJKMQ/6Mdd7aXL7t w==; X-IronPort-AV: E=McAfee;i="6200,9189,10294"; a="318755915" X-IronPort-AV: E=Sophos;i="5.90,203,1643702400"; d="scan'208";a="318755915" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2022 00:43:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,203,1643702400"; d="scan'208";a="515684510" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga002.jf.intel.com with ESMTP; 23 Mar 2022 00:43:01 -0700 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) 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:43:00 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX604.ccr.corp.intel.com (10.109.6.214) 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:42:58 +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:42:58 +0800 From: "Pei, Andy" To: "Pei, Andy" , 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: AQHYPdRNYnO1vUxwT0GjjX8Heeg3RazMjQFggAAKNpA= Date: Wed, 23 Mar 2022 07:42:58 +0000 Message-ID: <4011e40bcbbe42c298501b69d1b072ed@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> <3d2270bc996e49f88e97dd2fe5da8b1e@intel.com> In-Reply-To: <3d2270bc996e49f88e97dd2fe5da8b1e@intel.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 SGkgTWF4aW1lLA0KDQpJIHRoaW5rIGl0IGlzIGJldHRlciB0byBjaGFuZ2UgdGhlIGNvbW1pdCBs b2cgdG8geW91ciBkZXNjcmlwdGlvbi4NCiJGb3IgdGhlIGJsb2NrIGRldmljZSB0eXBlLCB3ZSBo YXZlIHRvIHJlbGF5IHRoZSBjb21tYW5kcyBvbiBhbGwgcXVldWVzLiINCkluIHRoZSBuZXh0IHZl cnNpb24gb2YgcGF0Y2ggc2V0Lg0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTog UGVpLCBBbmR5IDxhbmR5LnBlaUBpbnRlbC5jb20+IA0KU2VudDogV2VkbmVzZGF5LCBNYXJjaCAy MywgMjAyMiAzOjA4IFBNDQpUbzogTWF4aW1lIENvcXVlbGluIDxtYXhpbWUuY29xdWVsaW5AcmVk aGF0LmNvbT47IGRldkBkcGRrLm9yZw0KQ2M6IFhpYSwgQ2hlbmJvIDxjaGVuYm8ueGlhQGludGVs LmNvbT47IENhbywgR2FuZyA8Z2FuZy5jYW9AaW50ZWwuY29tPjsgTGl1LCBDaGFuZ3BlbmcgPGNo YW5ncGVuZy5saXVAaW50ZWwuY29tPg0KU3ViamVjdDogUkU6IFtQQVRDSCB2MyAwNC8xNV0gdmRw YS9pZmM6IGFkZCB2ZHBhIGludGVycnVwdCBmb3IgYmxrIGRldmljZQ0KDQpIaSBNYXhpbWUsDQoN ClRoYW5rcyBmb3IgeW91ciByZXBseSBhbmQgbXkgcmVwbHkgaXMgaW5saW5lLg0KDQotLS0tLU9y aWdpbmFsIE1lc3NhZ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