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 25772A0A03; Tue, 19 Jan 2021 04:22:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D109140DC9; Tue, 19 Jan 2021 04:22:32 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id B9020140D95 for ; Tue, 19 Jan 2021 04:22:30 +0100 (CET) IronPort-SDR: JorRzXpEoqra1+aUOxqNWOZe1azFNL5RYzLRx0d72u0VM9wltyWKAHExd5jubr0uOaS9Zb4wXG ImJYFqns3UzA== X-IronPort-AV: E=McAfee;i="6000,8403,9868"; a="197573678" X-IronPort-AV: E=Sophos;i="5.79,357,1602572400"; d="scan'208";a="197573678" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2021 19:22:27 -0800 IronPort-SDR: DOyIIA1EV9/OZa+qo7CsswjcymtfT/FLqhR3Kbf5B55MXGhOpiU2oPZtREgpTaOnHshQcAOTF5 zfS2J0ALaowA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,357,1602572400"; d="scan'208";a="406381430" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by FMSMGA003.fm.intel.com with ESMTP; 18 Jan 2021 19:22:26 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 18 Jan 2021 19:22:26 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 18 Jan 2021 19:22:26 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 18 Jan 2021 19:22:26 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Mon, 18 Jan 2021 19:22:25 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LWzPKWTVOtFTapnC/6NzTq1z1ruVcMZroM6ZtuY9zkXIJ60Mb7th090jMD80isLtZq3jwz996m/6WMvoCwK31PLXdBQP6pSjtoCrZEMyvM6BhOE0hVJZKGSBonuz7erbquCAD0Pkf5TrMDui70vc/tzEMb62Ww+/+14kwUzQJKZ0H+DX3UM7DiT4ZP4eNcHSRMXxZklAbDmI18Wgf/HZJRLZgTqwq9uVdjVRcbkxYXhQ3m+eKdca8Q+vmzAyZ+SpNqofPwRbBWsU7CvZRX9M9MeeSb21wy/7WlYxvlN+ZF8+8KDKEHYfnpVHvQsjmGmemLVwbHHFSZBWHqWjjeikzQ== 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=JMJEAwNMmjWbcfpr3Aawh+NMkqawHc6yYuJZuA3l46Q=; b=MXsRDgDhRZPPGx7mpw8+K9oZZURkevoJatJT03fkBY4X25gV/PKQ2eNEaWS4SszzXIUAfhZGaQPNti3B+Lwf2nOQDQXG4JTXqyHwg/3LrcQWukEiOlnw9S7GMe8btBl7FBjMWz3dCVKH5h/PXGGwbxX12+KaklSJZrpSI0J/PPDybWxZKhL6qDeQTXcvxdZn2WZ+Lu0neCM90T8Bi/olzLn2NbzADJGYL8QZsNnD4MOUslyIWJUllzgvOK5IYBvxEq4DrnJG0PVOHFEN8+96CNvaLYThX9veoE5f1iwL+mDGVT6G2cyv7IqbCcTuJD/ce56k8dyfNrJRezJf3syTfg== 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=JMJEAwNMmjWbcfpr3Aawh+NMkqawHc6yYuJZuA3l46Q=; b=JiCb5fCSbFrwyCXqivXvigELGFey/tJ9lx6JubYw3eh+f8Lx1/Nxih18GOR3LmuRALuCt39yNwLe2wJtGhN4Z/XFULklzPtmro5sye7O5Nqv0tSgr4n8DXwSwPg1qTMSlg1UcEflrTw/Av3LuVPZXUZrKel1genZsUq/u6Iwtm8= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3743.namprd11.prod.outlook.com (2603:10b6:208:f4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9; Tue, 19 Jan 2021 03:22:25 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::4c5:a27c:aab2:a2ed]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::4c5:a27c:aab2:a2ed%7]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 03:22:25 +0000 From: "Xia, Chenbo" To: David Christensen , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 3/9] vfio_user: implement device and region related APIs Thread-Index: AQHW6j1n7OxSSxvD6kyndw2Lf8hH8aond0aAgAbYZzA= Date: Tue, 19 Jan 2021 03:22:24 +0000 Message-ID: References: <20201218073851.93609-1-chenbo.xia@intel.com> <20210114061411.39166-1-chenbo.xia@intel.com> <20210114061411.39166-4-chenbo.xia@intel.com> <8704b148-8010-88cf-55c0-b0cd600dccd0@linux.vnet.ibm.com> In-Reply-To: <8704b148-8010-88cf-55c0-b0cd600dccd0@linux.vnet.ibm.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linux.vnet.ibm.com; dkim=none (message not signed) header.d=none;linux.vnet.ibm.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: 24356553-15c6-421f-9ead-08d8bc29711d x-ms-traffictypediagnostic: MN2PR11MB3743: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:63; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0y1kqj87t/26k4iFA+1dBFDPdeQqamFmGkUQfAPHkYgbSiiBhc3le3NP2nQrduUf8kpxgArBbiUv1SUU6yhIwIJFwp4aOomEepYG6HjIgM9+iFUCjF4nmimUWNCd7HMX76wJHX9mwA6pgmTgN1Pom+h00ghpa2ajN/YNvaKxqHsH5O3VNukwv1Monj7NTP5skPUfFEz4pmaxeVanKTRc/YbeHl0pqLq/z4XRck20JIXFHIvpOwft5gZt1YXVyaSUbTpv2KR7LINPRi2hgXJkuAnRMtBx0+vENoqYyK+ONkNGHJUPj7AmxnQP74rcu62giBNggYB7hHan3awG2gA2I+UrL3D0VDiUvk+0tgYHzS5xXPyp36MX3HGpkgRP6p5TONb5CX6fZrF40NHi6taipw== 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)(136003)(39860400002)(396003)(366004)(346002)(53546011)(478600001)(6506007)(9686003)(5660300002)(186003)(2906002)(110136005)(33656002)(8936002)(66446008)(76116006)(66556008)(26005)(52536014)(66946007)(7696005)(66476007)(316002)(64756008)(71200400001)(86362001)(8676002)(55016002)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?Wk04V3M3a1ppZWphY2VZcDFuS29jMmx3ek0wcjFBRllhMmNPc3VKS0hlODNF?= =?utf-8?B?cnkwbFlscmVvUFdhdTNoWll4VEpmdTFTMjg3Z0czaWxQNkZsY1hCNk1Pd3Nv?= =?utf-8?B?WjRTcVdVUTg3RTlUOHM2Nk9IU3hZaHB4NWU1N2ZqcU5YQjQ0bC9ESUpaNDBG?= =?utf-8?B?endxcURYY1VaTkRJK3dkUHd1UVBMbFgvTG1CdTZOOVh6ZFB5YVp2aTlYMXl4?= =?utf-8?B?cis5RkEzZVJEaWZWQVZwTURzbm1sT0JDMDcreTV6cDdvcnJqL0hWTitYQ3gr?= =?utf-8?B?Q1pySCtVRWNYa3RQbHZlMURCVDVGZEpGalpWVlhvU0xmVDQ3dTVWRFpUUnZU?= =?utf-8?B?WEZ6d3BNZFNvdURoZXBJQjRSZVlBYlBjaHBwMWNBV21UMlFKQTlFUjVjZFU1?= =?utf-8?B?d1BQN1FwenFGV1VZUUdFcEU2NDRkVnBkaHhRNk5ic3NHSkFIc1JCZHlQU3h2?= =?utf-8?B?T09scEYxVHZhdGhBVFZOQzVSMzl2Q1J6cUVOcG5vNERPb280dGM4K0ZxOWxC?= =?utf-8?B?anJhWVdSVXd3NHBrWlkvV1FVY21RclhxVzYrSXZuUURzV0ZUOHVBN1hZanF1?= =?utf-8?B?aHZMRzVQUzk0bDNpZ3VBcFgzOE9zUDlOS3JoZjNJZ0JFRkdZYTJwdTljMHBP?= =?utf-8?B?Y1p4WXd1cm5McFBaa2g5d21pUkVoMURxdjFsV1A4NHZMcjNUS2M4YmIwcEFD?= =?utf-8?B?Rllpb0VNK2pXN0tBSno1NGkrcDVxSFUyQW1wTHQyOW1pa21VNDlMcllONzZI?= =?utf-8?B?d3doMHRDWUdZRWpPYTVqeGxIUHhTNzJKenVvTFJzL0hUZVZIK2Mwa2o3YmF6?= =?utf-8?B?dzhWUGFzQ2d0eVNMSk1tZC9NSjdqSTZ3MTBCN0l6djVQNnUxUDJWelJKTlRt?= =?utf-8?B?Q21NMHhIdkNLREpYck9UWEtWeVJNcWoxWlVzajFac05kcWRjY1pGSEs1V1Vt?= =?utf-8?B?VFVtcFkwTGtiQlViOFF2cDdOaE02YUJ2N20vZjVXQk1hU25OMTBoYzJmTnc5?= =?utf-8?B?WHlIaEwzNG9NSDlPT0Y2SWVQSlU0aUFtWmdGZXZNYTJLMm9udTlXNWhFSlND?= =?utf-8?B?bWRXak9iZi9IZ25GRytuKzhvWDBmVFJ6WnlQZjkxa1pyb3VXSGFRejViQ3J1?= =?utf-8?B?VnExcmlzVUR4SE1LMjlqblFlU2NzZlFvdUM1cGpCZ0ltdlN3ejFJNHk0TXh6?= =?utf-8?B?NEg1VFdQcXZ5emNRdmM4R3dCYXY4UnNRV0l5WC9BcEtMM2xsbDloWTljRHYz?= =?utf-8?B?NHE1c2xhVElqUXFxNDkyejd0RE85NndJb3JjbEJCdUZVa2VjVkNWbnUxbG1X?= =?utf-8?Q?Fvxsu6++1o6oA=3D?= x-ms-exchange-transport-forked: True 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: 24356553-15c6-421f-9ead-08d8bc29711d X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jan 2021 03:22:24.9363 (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: N9cOWLjZ3jEQBtepjOi8EP4uJEWawMfjuUiDh7VEQUDMJj/ym4h0txP6Sf6LHJlbgTtsQe6JhJUV02v/tptW6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3743 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 3/9] vfio_user: implement device and region 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" SGkgRGF2aWQsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2IDxk ZXYtYm91bmNlc0BkcGRrLm9yZz4gT24gQmVoYWxmIE9mIERhdmlkIENocmlzdGVuc2VuDQo+IFNl bnQ6IEZyaWRheSwgSmFudWFyeSAxNSwgMjAyMSAyOjQ5IEFNDQo+IFRvOiBkZXZAZHBkay5vcmcN Cj4gU3ViamVjdDogUmU6IFtkcGRrLWRldl0gW1BBVENIIHYyIDMvOV0gdmZpb191c2VyOiBpbXBs ZW1lbnQgZGV2aWNlIGFuZCByZWdpb24NCj4gcmVsYXRlZCBBUElzDQo+IA0KPiANCj4gDQo+IE9u IDEvMTMvMjEgMTA6MTQgUE0sIENoZW5ibyBYaWEgd3JvdGU6DQo+ID4gVGhpcyBwYXRjaCBpbnRy b2R1Y2VzIGRldmljZSBhbmQgcmVnaW9uIHJlbGF0ZWQgQVBJcywgd2hpY2ggYXJlDQo+ID4gcnRl X3ZmaW9fdXNlcl9zZXRfZGV2X2luZm8oKSBhbmQgcnRlX3ZmaW9fdXNlcl9zZXRfcmVnX2luZm8o KS4NCj4gPiBUaGUgY29ycmVzcG9uZGluZyB2ZmlvLXVzZXIgY29tbWFuZCBoYW5kbGlu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