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 C93BD43334 for ; Wed, 15 Nov 2023 07:14:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C42B4402E5; Wed, 15 Nov 2023 07:14:04 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2063.outbound.protection.outlook.com [40.107.96.63]) by mails.dpdk.org (Postfix) with ESMTP id 0D5BD400EF; Wed, 15 Nov 2023 07:14:02 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KmFaagRVn3OKYYh4S06sYkav5Bf943lW7D64yC2gfa+OURVT7oQDJoM0VZbeVNkCQSLBKMMi1bqwlF3l2qcsMUKybgovVpekb/+2LtDSi6ovtgvcR2aBTnMjTNDanojX8a4+HUQ6TmHoPqMv9IowCSx8q1gMvcY/Ibie4Y1sBKuulSyDEMtv268bzohcaqFSN07jTNPSH+hAleZSYq6ZTIdEQFpscXqDpFzuG35HsYFt2mmITWATQ0XbBk4dyDghBH57rC1h7dK7ulP+czPtgsOwHBtdmZ09uaXLGP4E7oC0qwtpwMm8S4REP3R41rMdDF9SA2hrzZc44hYSxoawBw== 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=FeHivxyqQC3FGkewkMSOtVuK/c3MKmiZX2kpkcZeMyU=; b=QxA268xhkGaC//uOPwr6L/b76Ydk1Tg5nqZj72jEdAMY0pIfZWusuQIz6WFsEAjg3/GzVV/1y/ERLC0+PuszBQalYaBd+TSbjuugzfaLrAO3IV8K87nRJw/lk142R6DaMQxQTllNgx87lDKIiMmGaf7JYchmShLtlOVNHhHrSQ99225G+WtRTcd2K8sP+Vdw56p4JZxNdSblqdAoYxx1vY37BjRz59qaOi8LE3KQuR8GmnaDYMawfUO331ivTQJVEied3GNWk1MJ7Dz0WmwGIl7a3CgWHuPoAH0/f0IZ0+MhUkC7eEX02aMNqz4KTAXInEUcQWHEhdX++7ZB4BRVtw== 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=FeHivxyqQC3FGkewkMSOtVuK/c3MKmiZX2kpkcZeMyU=; b=uLz3WyYGdZpCSwkNnoL1Ahb1tMXWSwzaQVETlRJXObodAcTRPW6Is1El/sCLcsYAVUDW/xZesz6sFCw6dhhXxIcHN6VNkVjKgUny8CrCEw3rfXgm331Hb2HQbzjRrVw09xyEgB30z4tFld7gg2YpIe0f0dLB6d+p/WB8Bl/bH5/Tkfqvm2Qg1qS7C9xyG24SpxrFPLR8obQAZlB30xFnO6IoDX5mjnIOJuoojkVtkjqEPSwvXzw21jAIEBDZ9b0zGYWwvh4Xh5qyIVdNgdk2ttAs2g5Ml19GD7/yfkh6qNtPLfjMVxR+AR0onhFkhXzyugos0nUqkahE2/jzpe/eiw== Received: from MN0PR12MB6341.namprd12.prod.outlook.com (2603:10b6:208:3c2::13) by SJ0PR12MB6712.namprd12.prod.outlook.com (2603:10b6:a03:44e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.17; Wed, 15 Nov 2023 06:13:58 +0000 Received: from MN0PR12MB6341.namprd12.prod.outlook.com ([fe80::87c1:7938:fd9e:e088]) by MN0PR12MB6341.namprd12.prod.outlook.com ([fe80::87c1:7938:fd9e:e088%3]) with mapi id 15.20.6977.029; Wed, 15 Nov 2023 06:13:58 +0000 From: Chenbo Xia To: Mingjin Ye CC: "dev@dpdk.org" , "qiming.yang@intel.com" , "stable@dpdk.org" , Anatoly Burakov Subject: Re: [PATCH] vfio: add get device info API Thread-Topic: [PATCH] vfio: add get device info API Thread-Index: AQHaFuau8EJs3p+gQkKZBF9BE8HXFbB65/oA Date: Wed, 15 Nov 2023 06:13:58 +0000 Message-ID: <2D10CF9A-840C-4B89-9FE6-AAEEA3085B59@nvidia.com> References: <20231114102300.409158-1-mingjinx.ye@intel.com> In-Reply-To: <20231114102300.409158-1-mingjinx.ye@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN0PR12MB6341:EE_|SJ0PR12MB6712:EE_ x-ms-office365-filtering-correlation-id: f3dda9bb-19c6-4349-4c24-08dbe5a20dd9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9VS/e406o4w0DLuEVPiN+KWDvwF1TipHDBBBto7hoRmpdbewZl9dL9+8M3bzxJm1kYAPmG45is5CjqYFJuuSp4lqXwl11zKeappd9YH4JTbk/TM6XwWIYBGo0WO9tHzgTwajVzbBjKGCK1ByTBGnEMveOkXp6z19IFvQ/Rzxeq8QIgv/f+abM0NhywMcmheQ7+sWY7NMLmKqtMembTK1VrIZ/QsO5YZlhJ1TVxr1d9jNdQjApMMAD/IUBQXhERehuZ0to3adb8F/JuZfFO+oh96qleRpDZyfqVR9ecqJmKM3LaVCHauNIbWmevDyWuNFo0nrL8ERVyShoOhL8ek7mpNQlKzkbRmFHv9+KPFv9uIcnNBvO0sfBaE3q750mVBGjOEnP/6sVkn2hwOunycztA6p2skLyPiGS/1TVPU+hfjd5rCwIFH3DuiT5RsLYbYyOhhvsNmBdtf4rIUHoDG+683svzsrk77n063HpDMLXVi02bmiq82LywX3WTlulAGSI7svNzASi3G0SgePsEPG2Fq2D/4e74wI844PDbGv00D/swdlIRNQqPzOd2fHcrmw2xNbNm+xc1hKOamHlqJZfalA5CKQbZM1cQ7rdA3xLgtuRgIZKW1rDvOv7yu2BZq8GRJpuB4sDlC8m3FDQo8aHfAY+TnuFw5mT1nx+LaBZ7B6/RpGJW5CAqxHoR07O1Fc x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN0PR12MB6341.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(346002)(136003)(396003)(39860400002)(366004)(230922051799003)(230273577357003)(230173577357003)(451199024)(186009)(64100799003)(1800799009)(38100700002)(6506007)(71200400001)(53546011)(122000001)(26005)(2616005)(6512007)(33656002)(41300700001)(2906002)(4744005)(8936002)(4326008)(8676002)(86362001)(36756003)(54906003)(38070700009)(76116006)(66556008)(66476007)(66446008)(64756008)(66946007)(6916009)(5660300002)(91956017)(316002)(6486002)(478600001)(45980500001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jdFg0panhdVWXcTdSZzwUDtHD5mBr+Tfto329WlGHBrptMya6lJuamdb1U7n?= =?us-ascii?Q?ZPclEB1nWy/BqEJ5RmldlAxtxGnNtFU1M5KJZEODC1nuFdBVf7CJWGbJ01Q4?= =?us-ascii?Q?oa5uOp1UbqjHaX3jnZReDbhnGUVP23KF0MkYC2Xo5mqL9S4ocgxGpt+4HFkN?= =?us-ascii?Q?W66gTYnSVh/78bJ3AyLaYEZMEj2HKq13W7xbvBf/U1aocGfN1prO81A2bYFP?= =?us-ascii?Q?J4zdfl5UNPF5eFytukDwd45pXlKX2x+1xBRDoeFKvaadh3Cq8a1TSiRSDwXJ?= =?us-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/Ls9XOZJfDhUXAKODz3lqj4LNDe?= =?us-ascii?Q?JTr45ZlqzX0mV1ed7KOB0WXCtn6TVdTMbrSpHiBTEsXxf3hNxxr7ADXCyMz6?= =?us-ascii?Q?oNYZqLiYJjqisK5WtG/q0sQovuKhaY554B+PfA8J/uNLPsVbauf9zNYwhKf8?= =?us-ascii?Q?QsLncqnTCAQ2x5qTWET8cWdwqNnhMD7Vp6q1P825Wzn/iVChiXfK7Kp2AHPG?= =?us-ascii?Q?HqA3qxT+huySblJXbEYqlCMaeNEeWrAEgx4Y1e9sd0JVG/pulDMyVrWBJM1e?= =?us-ascii?Q?E32qM46T7qMd/uk0FudNbm9F1upZT7a/mOloFflSlNv6tNDgK+jzlg6JfDXq?= =?us-ascii?Q?lPbwlskTXGhzv98HCIVkqyoHY0PT3HGkBKqDdhGpV5Yw4jqmOTOUw2EThSEG?= =?us-ascii?Q?Tl8t2x3WAsQIM1S6IboRgZsEXGKbBs72/W96LBew?= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6341.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3dda9bb-19c6-4349-4c24-08dbe5a20dd9 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Nov 2023 06:13:58.2343 (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: Oz7e2s29yoVkgXL1pZMm/lMFc0ljc42EYdADR0oZNvgwtnk7jDNchMFSt3TROEJoMWahHdUvly3Jxty1Iribtw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6712 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > On Nov 14, 2023, at 18:23, Mingjin Ye wrote: >=20 > External email: Use caution opening links or attachments >=20 >=20 > This patch adds an API to support getting device information. >=20 > The driver can use the "rte_vfio_get_device_info" helper to get > device information from EAL. >=20 > Cc: stable@dpdk.org No stable Please explain why this api is needed in your use case. Taking this with the use-case patch could be more clear. Thanks, Chenbo >=20 > Signed-off-by: Mingjin Ye > --- > lib/eal/include/rte_vfio.h | 26 ++++++++++++++++++++++++++ > lib/eal/linux/eal_vfio.c | 19 +++++++++++++++++++ > lib/eal/version.map | 3 +++ > 3 files changed, 48 insertions(+)