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 B85AF433F5; Wed, 29 Nov 2023 02:47:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E898402CE; Wed, 29 Nov 2023 02:47:56 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id B526E402A9 for ; Wed, 29 Nov 2023 02:47:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LxZYvueRnnABLZ2tQ2y7GY9b4HxcOmCgkdpZKBSkgC69t4dI+7NTdCy1VJrG6dyIApXhqn6pd8TyahvsteiT+QWTtQAdVaYwyKeQ69/LYoHBPbPd5BWRGzliUmPq8/JE3uY/4pQT0qgC2ww4LHGuExUK0we0NmeR0G408yGCN4joDfEjMSljld9JApFOLUtn7OtLo9rq+bF7DrVhG3UkwzcfI6dkdHaBq5RXEskKlHSRce38ak37S4YnO+6OtKmg5UA2ne3JT7pUGyGOTMQOJ9A85TfEC1aZT/1D+puhOUOajj1Hx8yj7CTcJWNexAuoyljvtzTgrjE4MDky0dVxDQ== 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=k+4JGP0noJM+SqcPGCu1BDAR4moA0F/7NFJtdBg8/i0=; b=AKjxq4HTSbefyCYXmyktfQ+EB68UAdE7eNDecse3D4nOjFMpljjrBqakfvos6mBcLEYexXd2Ajlww55l/qYg1vgcIfDIjuAFauYkWsecHureB3oo6Py+msQfpV4A+qKiyehMladYs4ssNki2HXgzR/SODfxJU2tQoHrk0ubC3ROTlgRZSovPKH4IBEAXq8tzC6fXyN3hx5FpVHCQyZLoecmREOKldv7d1GqgLNe05ssJMkGhfoTzEIm7pXa94bA5Mn6LKxQ+3OgINx1gO2bA34j5TMAzBFU3ydN4UZiI/iS3BaPGsMcCiObRuZayDdEBFnPUouqs3fHayQz468RiwA== 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=k+4JGP0noJM+SqcPGCu1BDAR4moA0F/7NFJtdBg8/i0=; b=hlAKwyYlvc/n24DSpwOSY7yRAjIHeVZjfB9nz5Ds9GUw54D7WkHnTc3VybGFVRfbdj/OpPGB1ztsMF07VuJKzwDwB0DjhpKlz5Bo0ly70+M0DF/RDZPci/GyMgytaVlchiySr0Za5rA4sCKlY0ux5alAV8TopV71zK1mYD7E4V4FGrWvmt6mWPAtxFV3GaYp9n8Y69PX9FmN63nP+bFElZaZoBIzJjtkHkq13Wlmtg9Bp/qsO8PAQkeyyIrmdMjlyjXQ7SZULU5n03IBW94DN4tWqTUrWmKMLPxQGEffL19oANickcdBflf0tAkbKIpeAIrg2sos26kdJSB1VucKFw== Received: from MN0PR12MB6341.namprd12.prod.outlook.com (2603:10b6:208:3c2::13) by DS0PR12MB7678.namprd12.prod.outlook.com (2603:10b6:8:135::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.29; Wed, 29 Nov 2023 01:47:50 +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.7025.022; Wed, 29 Nov 2023 01:47:50 +0000 From: Chenbo Xia To: Mingjin Ye CC: "dev@dpdk.org" , "qiming.yang@intel.com" , Anatoly Burakov Subject: Re: [PATCH v7 1/2] vfio: add get device info API Thread-Topic: [PATCH v7 1/2] vfio: add get device info API Thread-Index: AQHaHS/96dzAf1FavUCGqssa/Et+o7CQkbIA Date: Wed, 29 Nov 2023 01:47:50 +0000 Message-ID: <113A4292-9833-4AB2-A930-782E9B460FDF@nvidia.com> References: <20231114102418.409285-1-mingjinx.ye@intel.com> <20231122102232.108299-1-mingjinx.ye@intel.com> <20231122102232.108299-2-mingjinx.ye@intel.com> In-Reply-To: <20231122102232.108299-2-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_|DS0PR12MB7678:EE_ x-ms-office365-filtering-correlation-id: dcc85034-56df-43a2-4174-08dbf07d3227 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OkvJuHTO44Rvd6H32si+KBxYzcrpTsV/THqF4bRjs9nVVT1z9bMDNOJd9ypKiFrjqaWPFJ+AR2dTjTXECO1fCBC8yMrGeTe7E/HCSQSKAdqnQIarb69frjwfsKKt7AGyjmNc30URwqh3RYkVLdRE6/D4r3893PNm0d0UjJMbg6e/R3nhbZTPkJCiU3OvkhCCOglIwd/Ik8AVpDvU9IBbddCPa2ZItLp9OAkSz5TIvOvGxZceScIvhaK5IFcV+ZmYf04M9Oc04Yw8jFW5gcrImUCweDIlGeSnjUN2sswYqpWRmQjxgwpC0rYva+MbaE+XdRkVEEp7tKsRWdP+LKouByy0MR5R/wcckoRysEA05PP/9nCoUhd8HMdcBuCTJDMNQ3Uu+Wmksrxpf5FV6D+Wie/B2uAlmvc/LHRn8gyQgF27wGgN4gl+scVfKz1G4WDQgf2DQsMKRzDmO9d8oYPsud4KhA0ed1+1aTgmHo3Slur/rfW+J581vbvCbaeY09w+DmSMZjfhoRutenUVHdV0Zdj+IjkBv0KrphcSclDm5Bcn5E74frNOSWxJIrM+ZmTazcbHxMTLfnNJbEYH5C572sOk3NgZgpI5Rnk+027EaxS3ZFJrOMcFxWADW7YMZ+rs4b2TL1DJAnNmRwOy1iy4/PB0OUW9rzm7x36OO+BIIpubh8Rz9MxQuu+bKkhRxU4XUfWInUslo4afkXK+qR5qLQ== 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)(346002)(136003)(396003)(39860400002)(366004)(376002)(230173577357003)(230273577357003)(230922051799003)(186009)(451199024)(1800799012)(64100799003)(2616005)(122000001)(316002)(54906003)(38100700002)(36756003)(66446008)(66476007)(64756008)(66556008)(26005)(66946007)(6916009)(91956017)(6486002)(76116006)(71200400001)(478600001)(53546011)(966005)(6512007)(38070700009)(6506007)(86362001)(2906002)(5660300002)(33656002)(8936002)(41300700001)(4744005)(8676002)(4326008)(45980500001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?p14kGUShCq2J9zZb/hIhOCOtdimEC6Yuzb5cKJxnOWpBxWzPnBN59Ga5kTKA?= =?us-ascii?Q?11Y8Pz0aaTF/9bxICl1DJMJQW4NDY5P10vnPDxpRk7YL02YwZhqOaIhkP3/7?= =?us-ascii?Q?IangZfUTjJHRkzfzbiqd2gfOf1Ymu12iUvPRha/Llc/oOrPhSowsqFqEZf9P?= =?us-ascii?Q?nHMo9aK4MxyZD4U72rsbF+7I+fcX48H4FbGY29kysdQz6kliiLYaudAtlpDm?= =?us-ascii?Q?yggMKQ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DUwfdop6WB?= =?us-ascii?Q?temPoJOEcp6fEk1mY6R0LnRuVlKPmVP0NCGvAJ6Dr47qTTH3AQufRYvpurxZ?= =?us-ascii?Q?NgDU0UnUXKYCJWdZ3wdUOHkhlJr4AQRrHluSS0Kmy69H+k1LOPevhoUY7dFy?= =?us-ascii?Q?umpZ1NHSJFQmcwSjO5g8EnPAW1gCWY/djieyzDkBUttcL0a15jEY5IOhUq9t?= =?us-ascii?Q?Ixq4wugn5bYW/JS+7fe+R6OJ/7bSUazJhPEdT8LqbUIqYALn+k8v66YimAUR?= =?us-ascii?Q?3AZbGzUVj3df9hd1AST1YGfa+qwxR9CODupwOrJMstsFh5LlRFOfY130TwVc?= =?us-ascii?Q?FZjPSdrjYbjLRYKbRA8seJw402D+Z31P5qCXqAHDCUl1pGtK6EtMFHHcIFDf?= =?us-ascii?Q?v812300/XHv2q5jSyUL2IKYJ6nmIKL5rpdDqVDhvwU6S0hmh5akZr+aBNC6e?= =?us-ascii?Q?68rCZfbCDR58zzWT85F/ZlZMGJUvbNFn5lx76tE2?= 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: dcc85034-56df-43a2-4174-08dbf07d3227 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2023 01:47:50.5669 (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: +LCbFbriKqWcoEwjzm5hReY63nfmUvZRGzYlXmXrwijw62I1gwGyZNo/uCp9c2Dj8uY+ff9t8TCbACiJMAh8SQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7678 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 On Nov 22, 2023, at 18:22, 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 > Signed-off-by: Mingjin Ye > --- > lib/eal/include/rte_vfio.h | 29 +++++++++++++++++++++++++++++ > lib/eal/linux/eal_vfio.c | 27 +++++++++++++++++++++++++++ > lib/eal/version.map | 3 +++ > 3 files changed, 59 insertions(+) >=20 Comments not addressed: https://mails.dpdk.org/archives/dev/2023-November/282200.html /Chenbo