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 A5ACE43335 for ; Wed, 15 Nov 2023 08:54:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9BAA7402EA; Wed, 15 Nov 2023 08:54:34 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 05EAD400EF; Wed, 15 Nov 2023 08:54:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700034872; x=1731570872; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=scWScUaPgOEomvaO1wMYuGvpZ3xvZALV1iHrvpVOUds=; b=Fqt0oYPfuU1DovFxQdqw+lraqZxZ1tavVG4cAK9XocWYOhmFRWZackks 6Lwq3jYHpbs8+XF+5sqTT0yo8eGk2cNSQyFHd6GH/YbAumP2u4jJhprG4 IV2CRfEE7UYfB4BF7xU/qo3pZtZ5Yq4Ee51dmTaPpMtfxKOuziIrK7VE8 T7JKGxJLBx4Xuyhe1DBihMvjyu7B0+gHdrPl51nlGaI910H5THoYZOW7p Xrb+KfzDS5PfAbSuMsNOnJXx2GY+AoL5ZogFgKAa942YhSpTHMAOrPZFR GyvRHpNJroDql6ejvO9VxvE3tuoUvI6dOrz/PD6hnNSHncDuSLg1I10fU Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10894"; a="389683012" X-IronPort-AV: E=Sophos;i="6.03,304,1694761200"; d="scan'208";a="389683012" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2023 23:54:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10894"; a="1012186554" X-IronPort-AV: E=Sophos;i="6.03,304,1694761200"; d="scan'208";a="1012186554" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga006.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 14 Nov 2023 23:54:31 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.2507.34; Tue, 14 Nov 2023 23:54:30 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Tue, 14 Nov 2023 23:54:30 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.101) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Tue, 14 Nov 2023 23:54:29 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Aa/ZPhnaCo6sg88KcIf10OK+Z1lS4VG5M2f7A6arZAgdsYI95JHakrjD4cXmFAG/mXP6FuqKIrzVO7Um/XfgHEm7QhXHE/PwG6Fc0Wp7+iZC1TSRJVko9vzsuBCoAB7cW2Cz2sR5ravVeU0kBohvNrMYoiIzH5mZpJyYLAB8yA205FVMdAIE8N+6jTCxuWOQb96SBKzDpEo7xYSN49cc44tv1t5Ov+5VNUA+KpZMKHhV5K5AoAdUurmUIxEh4Cf1Xi9LeWMxX8S4mgwZjMnZ29wHGydDFK7STpaj8DOoA3PxtM+cB62x9BhmhTl0gvtfAKBQFAQsNFAoVcHROGFMXg== 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=aFzwdeoKDItvH7v/w2KtmBDUQ34AuVpAO5N22KzkBQQ=; b=h0wPSCrBPSazrSY1FJFyn8tKpoghNpydb7AnQQX+9bKgZbtyOFD4+7sSAH69tmuiNdebjqj0bH6kEgr9VNbgah+MI6ARhQ6Wd1zufLYfMQFZkjjw0/oxvC4V+Bqj/Xc6y+G+PzloIWahBsGeSC8XR9PnJs4WC2FV6RT6GvTpruoieKDas775EfsacolH7WHV8VxdCj3KI2d2nr79St89Yzlw0zyCG0i+SPfATFQFQiCsFUoHkh1AUhIa8zlpmyfJRE0SG7d2aQUvIqeVaUkGFM+WQDC9/uSWEjmJZJZ0esarmP/bHtG3OsHGJoQRn+oBI/QM2EtH2kKfjEOK4uOpYA== 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 Received: from SN7PR11MB7139.namprd11.prod.outlook.com (2603:10b6:806:2a2::14) by DM4PR11MB7304.namprd11.prod.outlook.com (2603:10b6:8:107::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 07:54:20 +0000 Received: from SN7PR11MB7139.namprd11.prod.outlook.com ([fe80::5216:6b58:10e7:9875]) by SN7PR11MB7139.namprd11.prod.outlook.com ([fe80::5216:6b58:10e7:9875%7]) with mapi id 15.20.6977.032; Wed, 15 Nov 2023 07:54:20 +0000 From: "Ye, MingjinX" To: Stephen Hemminger , "Gupta, Nipun" , "Burakov, Anatoly" CC: "dev@dpdk.org" , "Yang, Qiming" , "stable@dpdk.org" , "Burakov, Anatoly" , Chenbo Xia Subject: RE: [PATCH] vfio: add get device info API Thread-Topic: [PATCH] vfio: add get device info API Thread-Index: AQHaFuompu8XenHRH0W6lXCmt5J8cbB6gvKAgAB3j0A= Date: Wed, 15 Nov 2023 07:54:20 +0000 Message-ID: References: <20231114104816.527818-1-mingjinx.ye@intel.com> <20231114161203.6e1be299@hermes.local> In-Reply-To: <20231114161203.6e1be299@hermes.local> 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=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB7139:EE_|DM4PR11MB7304:EE_ x-ms-office365-filtering-correlation-id: 08535ce9-222c-411f-7834-08dbe5b01381 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9hRIHWIulE1KOi+yFSdk7tsFhPCYSTqgyA2lDz0ZSd6wWQ8R6yFGCWGqmC50iTaa6ciatiTHV0hy9PiX1WHEpPAq9J6z/NpxIecqRi6euxfplEwmm38bWP/LocW2Crv6Kol1Dbmi9hBGS+rsGHX+62KMM0pWVjKBzmiAHw4pR5HujJBQpmO5fB7iRme2ZxbDW7hPWUc9GJmhyN+JzE6dfIokHD5oKrsOnlkuZgbM4J09fAUE/D6rMyG0FRlfZ9mZZ+9H0c3/+UwpX+WOeeIjADwBlyOY2EMBNmyAmSEWN9MKq7RtkTVMqOxkw2a4oFM52sffQtoT/OP8Td3x5isrKXjqi6wOVrCM5mJqooysOJgdfr/hCXwoUzlFTOro3xwQhPqZJ79MSa+HAl32tZ8bc0L70vcTJtnwPY10VuFPhRQlyjtm6M1CzADnlRlivgxFsfyii6xmQFli4AfnQnVEB2wHgza4bXXDGQNGc995Qxb03RhzLi5/FlK/f7aSEeO9EdkbnUNEfvjubFyXgqhDQqvCr1x9faYWM1DKZXIWeRhGUsgIhyMtpaD8PdVL4/sYD2NCt6lmEfNxohVClhjhq8juIAILXqVpFjQeCBKWkSFA50B6pwqJoXkf01al+DUi x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB7139.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(136003)(376002)(39860400002)(366004)(396003)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(316002)(53546011)(478600001)(7696005)(52536014)(6636002)(6506007)(9686003)(54906003)(64756008)(83380400001)(2906002)(26005)(66476007)(66446008)(66556008)(55016003)(5660300002)(66946007)(110136005)(82960400001)(41300700001)(76116006)(38100700002)(4326008)(71200400001)(8676002)(8936002)(122000001)(86362001)(33656002)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Lnm0kSuYx1iTH50nydKhoNcdAhWOCvyqGrD1VxARa0MlIoiqh/Xpj37hidGX?= =?us-ascii?Q?zQVabSyI1PrN0uALnBNs5HA9JeES+68J8nak5vI55eLCMItt/BhM1fenIPZf?= =?us-ascii?Q?4UK0OmtKeTN1+gPcyRtDi+OicusiKiNtnTquLHtogBPXMWJzrjQnybHZsPV7?= =?us-ascii?Q?cRe0Vf8lN4psJ67+IxTrsHgcTR0BrnT0TkyAndHvMMGIy3usofrdcx0P+c9a?= =?us-ascii?Q?4IYrS6W8YcExvuf0nOGoijIThn/In4qOZ+SbkfsoT5m/rbBap+O/cRq4m4KH?= =?us-ascii?Q?/zJGs61G9pt0D3hMmuiA37SFEmhl5dRzD0GfPsWlu3LWMzKRwqPKIZGxzJGR?= =?us-ascii?Q?ifmD+GfHOekoyUakHQJVEAgJg9belWjKgJAOCtql5RsOx059Xd4w2jjsC9np?= =?us-ascii?Q?FTBPhalmyBfFrNO/wknG96F1g7WZIumAj4tyhezKaAr0GQeD9JVRtdKH373A?= =?us-ascii?Q?bKTtXvCfBNZmorMju+cySQtog16yyKqDoxl1+s9nFH9A0jp4DV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dQqSwuGotPsUOuhdHc8AL5i7q+sY/2hvl76NxbsS8EIcg7j6w7x1?= =?us-ascii?Q?wjlY1otv0skAGZg/AKio4/dHE2rFWy9t8J7oZnz6FcQSaLt0DAfTk5fbf4RV?= =?us-ascii?Q?WvEbfXytluQ0cue6xRjvXwyWllVyehzfqba5tb6L5mtjCQWR6TjlL4kK1DNE?= =?us-ascii?Q?hkX807IyYi/a/ZnZECgeoylIzWJRno13AaOA9I5K?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB7139.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08535ce9-222c-411f-7834-08dbe5b01381 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Nov 2023 07:54:20.7019 (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: Safu9AD5UKRdtNe4MdAbqngbIoU1xf9jvz7u5Tvn2h23VrdjLAUWO7lkY6drLozCHwwyuJYODGrQqh5qNS9R2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB7304 X-OriginatorOrg: intel.com 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 Hi Nipun and all, Introducing new rte_vfio_get_device_info api in EAL to support getting info= rmation about devices.=20 Could you provide some suggestions? Thanks, Mingjin > -----Original Message----- > From: Stephen Hemminger > Sent: Wednesday, November 15, 2023 8:12 AM > To: Ye, MingjinX > Cc: dev@dpdk.org; Yang, Qiming ; > stable@dpdk.org; Burakov, Anatoly > Subject: Re: [PATCH] vfio: add get device info API >=20 > On Tue, 14 Nov 2023 10:48:16 +0000 > Mingjin Ye wrote: >=20 > > +/** > > + * Get device information > > + * > > + * This function is only relevant to linux and will return > > + * an error on BSD. > > + * > > + * @param sysfs_base > > + * sysfs path prefix. > > + * > > + * @param dev_addr > > + * device location. > > + * > > + * @param vfio_dev_fd > > + * VFIO fd. > > + * > > + * @param device_info > > + * Device information. > > + * > > + * @return > > + * 0 on success. > > + * <0 on failure. > > + */ > > +int > > +rte_vfio_get_device_info(const char *sysfs_base, const char *dev_addr, > > + int *vfio_dev_fd, struct vfio_device_info > *device_info); >=20 > New api's must be experimental. > Or is this just internal? New api is experimental.