From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 835DBA09FF; Tue, 5 Jan 2021 10:58:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 328981607A8; Tue, 5 Jan 2021 10:58:17 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 5F2911607A6 for ; Tue, 5 Jan 2021 10:58:15 +0100 (CET) IronPort-SDR: tFEn2jDV+nZRBribfMxqt8WqwKwfLf5y7scwViNbyiMzcAck5UsQo2ePedDbMYxuwIVCA1F3ua sd//jfIk9GxQ== X-IronPort-AV: E=McAfee;i="6000,8403,9854"; a="156866346" X-IronPort-AV: E=Sophos;i="5.78,476,1599548400"; d="scan'208";a="156866346" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 01:58:14 -0800 IronPort-SDR: JwxS8ZYdiza556vF6LftPKua3gdSIBldK61fvCwjZkk0MwMhP1xPg71rk74CxOXQswbK0od4ER iGPt77NaKj0g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,476,1599548400"; d="scan'208";a="567038712" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga006.fm.intel.com with ESMTP; 05 Jan 2021 01:58:14 -0800 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 5 Jan 2021 01:58:14 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.1713.5 via Frontend Transport; Tue, 5 Jan 2021 01:58:14 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 5 Jan 2021 01:58:13 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ePz4DsPrVdhK8ogsC5MXNUlHUAST6Sog9c6c3ayBOZt7HqtQuSBTYUM08sbcxqQexTY8F+yHBORtyFFnMehD4JRmZEdJT43YdiZyQl4/n41AhXrZJe5qVZU+DbMadl5yt4Hy4IMnaBwyNsN4aqpi5L81glIjKdmKEPUl2o7WyQIVUKLomxWAMqQ4fBq6yxalWROeztLgXPlqeVI+vw92ZXExLigI099qSxMsx2fsVLtmltKRPiaKHUX+2NBncxlq1gJgfqatBi1KHuF3WNSSzBbLdteP9qnJT0b0+68siNT/kw/HirDUi44iG1rpRHyR9J5fBtNNHFVMdROMGCFK2g== 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-SenderADCheck; bh=8W95BQNp0/x9KZ1OiBTX4M2bee/dz0KETYxePyzIzas=; b=a6KvuaQKTVpK8qELgKPkpCRNtzqy3CJay5hajEsAxAPkNyw5OgLaoAUls+WBri4CIxFpGNTJ6CN/q0G6hUzo4Bggtezk2Ow7VUCseYzZYQN1YChrzK/ISYIGl6vGu0BmF4RTYifGS4sJKY98MbkfifPVurqSuqX++i21Q/T5FvD9YYebydx38V8F/7YZGzF3nGM1DuzLLIS6TkGkdKqz/B8ZcLkCR5DfWu5wSLdDorGdTJejPHTMcmDJvtGJ/yO8swB8G/jmkO+WEuQImkr/nEFznjqa7Zkrvp9bNE2lqmYJNywGwzCj0oLV5vSH+Z3IcSmTgw64rKcXTztE53UevA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8W95BQNp0/x9KZ1OiBTX4M2bee/dz0KETYxePyzIzas=; b=Sismbs1IcNbK2C2MvjJz5rG5lp6nCN4f6EgUm7WUVEgV9MPhcUAzzuWqq7AdGXMf9JEbvXs222Q3RONuzMjQwCPiPc83gZEn/Qa0gxViFKXqz0qmMT91Rtwt4+2mU7L3v/p1j/vKZbT0MM80R/CtVfGgUGl+eFCJyRsbHoe1M4c= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3790.namprd11.prod.outlook.com (2603:10b6:208:f6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.21; Tue, 5 Jan 2021 09:58:12 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272%7]) with mapi id 15.20.3721.024; Tue, 5 Jan 2021 09:58:12 +0000 From: "Xia, Chenbo" To: "Xing, Beilei" , "dev@dpdk.org" , "thomas@monjalon.net" , "david.marchand@redhat.com" CC: "stephen@networkplumber.org" , "Liang, Cunming" , "Lu, Xiuchun" , "Li, Miao" , "Wu, Jingjing" Thread-Topic: [dpdk-dev] [PATCH 2/9] vfio_user: implement lifecycle related APIs Thread-Index: AQHW1RMrbSW20h3FfEeyr2KUXqNzVaoY0QoAgAAWw3A= Date: Tue, 5 Jan 2021 09:58:11 +0000 Message-ID: References: <20201218073851.93609-1-chenbo.xia@intel.com> <20201218073851.93609-3-chenbo.xia@intel.com> In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.46] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7287aa5f-38de-4a80-ba95-08d8b16069a3 x-ms-traffictypediagnostic: MN2PR11MB3790: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:843; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2K0yW1YvtekW1cXC9j5oy2CN+WVErEz8+BJubeVhUCJDMOc9JlmJ7PvMqo+FRPZAw8fxX8u/k3otQGDcNA00d23j0zyNF6tl2kylVS3CpWWV4u2SZuYw9nrK4GH/r5qRLkcR0EGMhLZg5nX4l9BBqqe4u2Nr0lR7G1PkWoMUSSJ1Fr5ogVdCqJ8bMmPW/mVs2pATHf5+QZ008WJL9ilVXODLe1PT83Uu5PvnPxjxviZdd0EBwNcDVHa85IdEh6j0tnePIdVI2DhaN4bjmYT12ds/PGgQrxrBZwfZKukP/JXeW8Emtmkq1fRYmFw/RxJLZVp446X/IasgWpF13wnIXDp5HWCx4y+ApVbH8KbYJWxsecNRz0W+eb2cuK4hRe4oU+d80GYG+1U6iWw6ZkXGhg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(396003)(136003)(39860400002)(366004)(346002)(52536014)(66446008)(66946007)(64756008)(2906002)(76116006)(83380400001)(5660300002)(66556008)(8676002)(66476007)(86362001)(186003)(316002)(9686003)(55016002)(110136005)(26005)(6506007)(8936002)(33656002)(53546011)(54906003)(478600001)(4326008)(107886003)(7696005)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?YkgweWZsQS9vcW9kTENNVXhQR2p4QUpHMjFVc1lONHVib1JFeE1xTnlTVDYy?= =?utf-8?B?dzJwUkNxMkw1eVBXZjhKeUdqbTdqZnFTL20zZTVvWFErS2drVzNJNnI0MW5t?= =?utf-8?B?cDI0R084R0h2TVhYdm82NE0xQ3YvUmk1TW5RSVJGcWEvUG1ScGJoYXhWdTNF?= =?utf-8?B?MThDOVR4QjFZT1hCZ3FLSElMZWE2QVV3YVg5aVRxSFEwZ21DeGNhd2tKR0ts?= =?utf-8?B?ajRXVDNRS08zNUpGNG9MMHdLYkRFNW9aVTkxdWlBZUlpQ2hxc2trYUE0akpi?= =?utf-8?B?L1pXeWllR2lCUGlpeDlzUmxJSlVDMk8yZzhIdnoyOHRLNTFjOHFOU2hLR2Np?= =?utf-8?B?VXhyOXhLQmdZSlNvWmdGVTdLUTU0R2s2ckdIelBObUJIUXhEZE1KUzZ3ZVVt?= =?utf-8?B?bDZwS3AwUnhpWkdidEN4Z2xhMTUzUDk2ZnJxWHRGemV4NUhCYjl2dEdsay96?= =?utf-8?B?UUdiSXZhRTB0bW9SZnpEcGh3OU1KOUJIelZUY282cWQ1WS9WZnRCUlRnRG1n?= =?utf-8?B?amVtcXhPZnpOR2FmbjF1SFg0cm9EWnRnWGxXaEpnMnNlZWVXZDNhbkZCYmts?= =?utf-8?B?MWJzb014RWcvNDhBRG1oVUV1Y1dGVzdYWFp0WS95NFptQm1aeXlvZzFTVlN0?= =?utf-8?B?M00zZVlubnY3WGlDS0c5ZlNtbnl6MjdTenBXTHZxQmlRcGl1NDFCNENldUJ2?= =?utf-8?B?Rnd3V1Q0S1dhWnNtM0F6WDNCbjFEVHBYcW51Tk53eVgraUZxRXhGVlkwT3lr?= =?utf-8?B?elI1eEtRL1hpMkdVVlVkWGh5V2dXOTZMSnBiNHBtWk13TS9MbktQWWRxa2c3?= =?utf-8?B?dXovZkVFZW0zMTBLWm1WcVk3RlAzUEZYYVN6VlZoTEhqa2pBRE1GZ0NWcTY3?= =?utf-8?B?STI3bDVxWm9Dc256ZWJ6QjhpZURGWW8zOVdEbXFkTkh5c1djSzZQVnoxYlJL?= =?utf-8?B?RzJmTWZyWlhrcmtNV0czZjNucjV1VE80NXFDa0NFNFBxZXN3SXYrRlYzOUZ5?= =?utf-8?B?OFRoZmwydUFVMUhCQ1ZJcmdLTW10RldJZEFwRzFzbkcwS2xRbGJMN1JGeFJL?= =?utf-8?B?N1lwT3NiRk9ldjBoQVFBSTNHKzNKdlBDR3BrYnF2L3lqckV3RDNOOHNxeFEr?= =?utf-8?B?RmlGUnN3bXVRc1E3OXp6WFE1ekVNZDhCcG1nR0ZGNStNenJyc2h3NHVvVjhR?= =?utf-8?B?Y2R2blZUWmpwNzFOZldOdlNZa2ZqQmpoODFQWWVpWTBzRFM3YjFIVEJQUDhQ?= =?utf-8?B?MnZYZFExWDJ3R1RCVzN5Y3k3MHJzYlhRR0hNSWFDYnVhNmZrWC92QkRHL1c0?= =?utf-8?Q?/QePZuuiH32YM=3D?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7287aa5f-38de-4a80-ba95-08d8b16069a3 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jan 2021 09:58:11.8980 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RKIox0YPUS10g5eoYACA4RoV7YObJYLZ9elGC72sSctp5oaRJEOCrbD8g3tm4RY6q3NAZXjqzQnaTKeUUFlwiQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3790 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 2/9] vfio_user: implement lifecycle related APIs 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" SGkgQmVpbGVpLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFhpbmcs IEJlaWxlaSA8YmVpbGVpLnhpbmdAaW50ZWwuY29tPg0KPiBTZW50OiBUdWVzZGF5LCBKYW51YXJ5 IDUsIDIwMjEgNDozNSBQTQ0KPiBUbzogWGlhLCBDaGVuYm8gPGNoZW5iby54aWFAaW50ZWwuY29t PjsgZGV2QGRwZGsub3JnOyB0aG9tYXNAbW9uamFsb24ubmV0Ow0KPiBkYXZpZC5tYXJjaGFuZEBy ZWRoYXQuY29tDQo+IENjOiBzdGVwaGVuQG5ldHdvcmtwbHVtYmVyLm9yZzsgTGlhbmcsIEN1bm1p bmcgPGN1bm1pbmcubGlhbmdAaW50ZWwuY29tPjsgTHUsDQo+IFhpdWNodW4gPHhpdWNodW4ubHVA aW50ZWwuY29tPjsgTGksIE1pYW8gPG1pYW8ubGlAaW50ZWwuY29tPjsgV3UsIEppbmdqaW5nDQo+ IDxqaW5namluZy53dUBpbnRlbC5jb20+DQo+IFN1YmplY3Q6IFJFOiBbZHBkay1kZXZdIFtQQVRD SCAyLzldIHZmaW9fdXNlcjogaW1wbGVtZW50IGxpZmVjeWNsZSByZWxhdGVkDQo+IEFQSXMNCj4g DQo+IA0KPiANCj4gPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiA+IEZyb206IGRldiA8 ZGV2LWJvdW5jZXNAZHBkay5vcmc+IE9uIEJlaGFsZiBPZiBDaGVuYm8gWGlhDQo+ID4gU2VudDog Rn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