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 2DB13A0C4B; Thu, 21 Oct 2021 14:35:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1BFE341202; Thu, 21 Oct 2021 14:35:46 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2049.outbound.protection.outlook.com [40.107.93.49]) by mails.dpdk.org (Postfix) with ESMTP id A630D411FB for ; Thu, 21 Oct 2021 14:35:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eHQTZCDr5+tyhhhK9DzQz+rCdxAZGZudDSqcIhFjgxCRpcgXzj5TJbHpOMuDLMvQc8SIbyyDm7MAS055K7uSAKvK2GxDoWWH6mMMClu6texvvsClmVz0OO3U7Z9MSscWG0fGKSWNrMZbiARjc1zbS9bUqL2Yw7Q6dIOivc5/8oT2yPPIYE/v4gId/XmOHg+lq5NU2d7GLYu4yZOLmaT/dJrhOerupF/kypKQ0DpRBC4ZrKpd4/WLnBGZFIaLd5X368uSKGUFviuei5laGhYLhV8HdQ68Eylb4NHotpcQLGGwldnKVdtqrRjQKo1Hgx2OnYrdoOCqrlm/+RR9dtQ+Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Qyl7jNRNZW2KJ0OAyE06AWjwnXBNq+4H7Nie/JIMGiI=; b=BP5Fu7gWRbkYCjBFexN3xDdSAhQSNmMgnPkXfImEpmUr23LvbsmsUDZxPkLo4R3XcxsDPwFySwx5t1pYwWb+/bt5XYFVnEGorhV04710AwxdVmQAi6GwGfd87M4SMjY32Lz1L1cYYg8PEyxcb8+vL1nAEvZMpRTNKksmtfHi9tSDixQWkcWdjY6sEu0h/lQwqN+tIRKkcGiIhsn3ltSGq8WQWbXwBeF5vF2/KvrY5xeuWzGyWvPbU0mGAq0ASYwnrF2Wp0GMFD4KL2/EamquI7qzu3jPyOcb15bD6oLg+YGH2GT+S/WMR/+fN0OLnNh1UjyP0/n93ElpvWtkn9ZVug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qyl7jNRNZW2KJ0OAyE06AWjwnXBNq+4H7Nie/JIMGiI=; b=CrQeg+EVe0IWJ59yaIaQIOu4J7Md/uxK5C6WSzWTVNhHkRpu31KVugkRImAJ5QdSUBN6UfcxS2TeE0Mzb0PBqGHq3q4kMQgAEVmF+ZhYLGz9/a1nAtERCHiQtznciKB6Zo9vaPCnEwAXIXnFJEblAHrcEENRqFYH3B2kYK4OALB2xraVgKJswNo3Kw2q4DzxEqL1UKzkhEH3jHP4nMhNArdYqa7OMt21CF7wvRc/A372SeMn9SMOwiD6QIbkaFuR7Woj98uvU4Bu7jNPpB+Ne621znCqvJ4W00AetKPCdqVW55Kee6SFWvUcwRhl0+fwMo6s3/loI37eHcsawUMtSQ== Received: from DM4PR12MB5373.namprd12.prod.outlook.com (2603:10b6:5:39a::17) by DM8PR12MB5493.namprd12.prod.outlook.com (2603:10b6:8:3d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Thu, 21 Oct 2021 12:35:43 +0000 Received: from DM4PR12MB5373.namprd12.prod.outlook.com ([fe80::584f:672a:653f:fe25]) by DM4PR12MB5373.namprd12.prod.outlook.com ([fe80::584f:672a:653f:fe25%5]) with mapi id 15.20.4628.018; Thu, 21 Oct 2021 12:35:43 +0000 From: "Xueming(Steven) Li" To: "maxime.coquelin@redhat.com" , "dev@dpdk.org" CC: "chenbo.xia@intel.com" Thread-Topic: [PATCH] vhost: add vDPA resource cleanup callback Thread-Index: AQHXxN4gU2J6wOCiM0eB5jWsNOhBN6vdXOKAgAAJuwA= Date: Thu, 21 Oct 2021 12:35:43 +0000 Message-ID: <04f60f8da1819b8a0196cfca20127107bd0b835c.camel@nvidia.com> References: <20211019113956.2254537-1-xuemingl@nvidia.com> <2bfda127-f6de-d3fa-0903-566b8ec69be4@redhat.com> In-Reply-To: <2bfda127-f6de-d3fa-0903-566b8ec69be4@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.40.4 authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 484bae8f-f9ab-4482-b83b-08d9948f4ccc x-ms-traffictypediagnostic: DM8PR12MB5493: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gkalU9ppq+V+h51LrueuZVUpf41VyznCbqlq2NR9Ak541DCqBedg7sLFnb/v7EdlV+YYZ1tav/c0CscLyPq0pnQVp1CL0zJe/+DRdDG/CqhH4B2Sc3l7Ucq013dFAM1tvGeKw444B6vR+4yvjfr8Re9B8utNf1ARGgon2X5JNAdWcU0Q4/IUfTpBpLe5yEjp9Q5kI2eAMPM6jVaE6u+P+TIRFM4wDkQqzJHAgBOVxfT6QCSivGET4MdZqBNNh3fMpnvlRwgKrWuuO+nt8HLra4OSadPeTWB+L7io98LmVoTi49dvNQzST9nXbOT0xx32nwTfJLvfMVUPEZesdIzAclF/irZJqYwUzAIHZ4s7EsJWXeJIa3rCc/qWf5DoXFuAyQn6OTNG9Yv2UiFKv+a4fLEqqpEc/TDkYXBMW7pOir6aKHOzpDSING8Y67WqnNzM0S7QEpTrpvqRE/1fEvMkJNiF9WNijdcYLp/R9oRAezSjsJINAaXgYTAek1UdyfafORTXAJNz8C8nA/5TNFpTHcvp9F8A/NgQ3/2ZTy3qppBBMBk4litspmA4NlBRk2XRSW5pLihjWko/Z2hISF/stpcmocig7BpWHl3bldGmvqrXPhUwSLgW8muD3zwnnot1jAto/p1tHw5+dcwN2I9utQqmW/2QMA9fDDY1EZ4LTEpw5hj1zTAIwzCKHv15D33DndDPXMzWSDykoWsRt5RSqQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5373.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(186003)(2616005)(6506007)(53546011)(4326008)(26005)(64756008)(91956017)(6486002)(66446008)(66476007)(38070700005)(86362001)(110136005)(122000001)(38100700002)(508600001)(36756003)(8936002)(2906002)(66946007)(6512007)(71200400001)(4001150100001)(316002)(83380400001)(8676002)(66556008)(76116006)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?YnYxNTE5YWdnSGlvK1QydHhNY280QmtFV0NzbWtBS0owSU5kUFpJdm5iazI3?= =?utf-8?B?alYzbFpQck5pRmU0bkdLZzZkSzFkQTlQeERuSndlOUZPUkpKZzByUlFNQ2l1?= =?utf-8?B?MS95eGJZaFNpT0dUQmRSdm05bTNTVmROSjFnNXNWa2lhUXVDZ0piME1oOFR3?= =?utf-8?B?L3NuTjVrTzVQckIwZFFYTUxGeTVWKzk2RmhSY2dUQjM4YTljbU4venIyRm11?= =?utf-8?B?dGhmQlV6aXNZdU5MaUFjMUN3c3JYOVR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OUpmUGpOZVZJUGxDUCttRGgwRlRUVnBhUUIz?= =?utf-8?B?dWh1K2VDT2ZCY3pGZTZpTDZ0NnZmR3N2Tmk2UHRCSjBxZ090dE9DZXlrUVBQ?= =?utf-8?B?cXEzQzdkdzNSc0hmdUMvTlFuN3pocXkvaXpSWHk5Sy9wTjZqcWd6Q1NUK2VT?= =?utf-8?B?L2pMVHJvUFNzYVlQNUVMWUl6ekRQWEVhWFg5MGlsV3gzY3pubUJrQ0ZFQXI3?= =?utf-8?B?eDhrMGpqY1MzZ2VkbnZxYWR2Q2t3enAyT1dMdVhUbGxXRVQ0elNJSjl4MDhU?= =?utf-8?B?ejZock0vUHE4aForMkRIYmlZWkY1anNxOTNDeUJpaXAxR0NiUTM3WTdoMnJL?= =?utf-8?B?Mnpsa01LaHNyamp0azJtK3dhdzY2UGtaUlZFeDhrQ1d5TXhZeEE3ZnN0VTJQ?= =?utf-8?B?eksvSlhIdlJhMVpTRlJNbjJVQXRuR3ppeDYwbk5iZHMwa1B1MCtJcVgwdkIw?= =?utf-8?B?OXkzTmFEYUExUmMwZ1FnRTgrd2Y3R2IvcTNTSUYxN2tBajVESHFTdzBPaFI1?= =?utf-8?B?UjZrY2YzYTRBMzZiY0s1Mm1LNHVDb1ZHMllOZUcxN0JTMEZhRFhWZnVCWTV6?= =?utf-8?B?akIweThzYmdJMWxmUzgzU2pDVFFGM0lPK21iL2RxRTVDUWc2RklGUUppMXRx?= =?utf-8?B?a3EyQVIyZ2ZUN0ppaW0xM0JYaktkRURJUnB5Q240UFczSE1YMXU4ZU4xMmxV?= =?utf-8?B?aUFBWGRaMks4SEtFbUpabG53K25NQ1VvVjU0MDRUSk52NEdGeVNpbS9kcDR6?= =?utf-8?Q?w1WTxvUtQvPdsxoRPxWgL73qijoAaQaX?= Content-Type: text/plain; charset="utf-8" Content-ID: <07DFBAE58CA6CB43ACB2F91E4BB9DF75@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5373.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 484bae8f-f9ab-4482-b83b-08d9948f4ccc X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Oct 2021 12:35:43.7951 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xuemingl@nvidia.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5493 Subject: Re: [dpdk-dev] [PATCH] vhost: add vDPA resource cleanup callback 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 Sender: "dev" T24gVGh1LCAyMDIxLTEwLTIxIGF0IDE0OjAwICswMjAwLCBNYXhpbWUgQ29xdWVsaW4gd3JvdGU6 DQo+IEhpIFh1ZW1pbmcsDQo+IA0KPiBPbiAxMC8xOS8yMSAxMzozOSwgWHVlbWluZyBMaSB3cm90 ZToNCj4gPiBUaGlzIHBhdGNoIGFkZHMgdkRQQSBkZXZpY2UgY2xlYW51cCBjYWxsYmFjayB0byBy ZWxlYXNlIHJlc291cmNlcyBvbg0KPiA+IHZob3N0IHVzZXIgY29ubmVjdGlvbiBjbG9zZS4NCj4g PiANCj4gPiBTaWduZWQtb2ZmLWJ5OiBYdWVtaW5nIExpIDx4dWVtaW5nbEBudmlkaWEuY29tPg0K PiA+IC0tLQ0KPiA+ICAgbGliL3Zob3N0L3J0ZV92ZHBhX2Rldi5oIHwgMyArKysNCj4gPiAgIGxp Yi92aG9zdC92aG9zdF91c2VyLmMgICB8IDYgKysrKysrDQo+ID4gICAyIGZpbGVzI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