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 000C043783; Mon, 25 Dec 2023 07:06:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DC8E5402C7; Mon, 25 Dec 2023 07:06:30 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 3C490402C6 for ; Mon, 25 Dec 2023 07:06:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703484389; x=1735020389; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=fSP4A8I0p6QIVzPuFRN65g+3I8Q9jdCK2W3w8Bst7Bs=; b=i90ODbRLJwKwZ1SA+QJuvJ4TOEJVETk9vtleu76Ax/WC36pZetpreSls 9tIyHHzKCr5aN4xZatvK5n59U6meU2Sq8NAfYxXf4iC7seNu6pgWO0XS4 Kbs2oV0I5ex3nXf6ui+lABIcYzO6+jMNf5fwyIa3AQ6Ocr0p2LrdIuosx aXUdZEQvz+JPVfOrb8oct4Ja9z6TQedO58D18dQje07056rFNgSF1U1ei imT80dpmBN290sONaxyU/KmEtvbEH62os3NqvHAUA8gzFm3B14htWAISS qVCfuIJZLVm06AHiA55BtCiYcPYTwazcpNdcqw2ws7i4Qn4kjpS1KNLoW A==; X-IronPort-AV: E=McAfee;i="6600,9927,10934"; a="393429982" X-IronPort-AV: E=Sophos;i="6.04,302,1695711600"; d="scan'208";a="393429982" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Dec 2023 22:06:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,302,1695711600"; d="scan'208";a="25988390" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orviesa001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 24 Dec 2023 22:06:27 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 24 Dec 2023 22:06:26 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 24 Dec 2023 22:06:26 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.35 via Frontend Transport; Sun, 24 Dec 2023 22:06:26 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) 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.2507.35; Sun, 24 Dec 2023 22:06:26 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nIvr862FTvla176yjFY9rR4xAw2DwDH2ADl01F2Xl8KtNvQM0lqQ8Nu+aKyGZaor7+gO3S6IUwGSY9RUBA7MjkEd8SyQmXzara4Z3d8WEuIXKxoKWEfR9xqN4OuGmARidz4hB8aSMnds7KwsMbP+pEG+8oxjW6aVA1rMnUNKjV976iR9c4rnvzzi8bTVEZ+9fQnjp/0rkCBrMNc1NW1XkCURa+8BlHfADZmxYZmrxltorbiltzVUJfPcWfFA6unLJJHwHWCytjzXZ6g1Mn9lYVdLXsQYYaYTmWfXif2RqVVvdom4++Ohmtck+5U+GlkjFd4vKRvCF8LvQkab5c3nGQ== 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=fSP4A8I0p6QIVzPuFRN65g+3I8Q9jdCK2W3w8Bst7Bs=; b=JdZTmHVIuvr6F+9jK7wL8Gz0y8rslfc5XbnjJ9GQzc/xoOv1CtUp2JTYdNOIi+NKlSs7V6zphxOH78nGKJQRNjlzt8Ao91p7rKKEXLUfREhVn1YwXEUoK7gJWBM0FApFfUjHrRf1Gp4VETUDMnDcNUuNtIM3foZJ4jQuh2FZ2UuUeBrFEsYCEKnLA7DucI3/AQxEYTTlCzEIPKtwDzBAv/OZMQsuc1Q/elrwnK61jpLmJGl7uyriTygZl+sGazjtvc8ZC1CitrtMD2HI0VyF8B+pfPKLDviSk7xKIacRLc2xqnQiHf8voZHeMM6uPHApCtLiACLrc+cKJipJFMBjFQ== 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 LV2PR11MB5997.namprd11.prod.outlook.com (2603:10b6:408:17f::10) by BN9PR11MB5468.namprd11.prod.outlook.com (2603:10b6:408:101::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.26; Mon, 25 Dec 2023 06:06:24 +0000 Received: from LV2PR11MB5997.namprd11.prod.outlook.com ([fe80::7fc4:1e1e:418e:4317]) by LV2PR11MB5997.namprd11.prod.outlook.com ([fe80::7fc4:1e1e:418e:4317%5]) with mapi id 15.20.7113.026; Mon, 25 Dec 2023 06:06:24 +0000 From: "Xing, Beilei" To: Stephen Hemminger CC: "Burakov, Anatoly" , "dev@dpdk.org" , "thomas@monjalon.net" , "ferruh.yigit@amd.com" , "Richardson, Bruce" , "chenbox@nvidia.com" , "Cao, Yahui" Subject: RE: [PATCH 4/4] eal: add new args to choose VFIO mode Thread-Topic: [PATCH 4/4] eal: add new args to choose VFIO mode Thread-Index: AQHaNMkoGuFIQ0AnvEq9GLH0BPzgiLC1i/CAgAP1SZA= Date: Mon, 25 Dec 2023 06:06:24 +0000 Message-ID: References: <20231222194453.3049693-1-beilei.xing@intel.com> <20231222194453.3049693-5-beilei.xing@intel.com> <20231222091735.0abb5285@hermes.local> In-Reply-To: <20231222091735.0abb5285@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: LV2PR11MB5997:EE_|BN9PR11MB5468:EE_ x-ms-office365-filtering-correlation-id: 298bfd12-f1a4-4182-6676-08dc050f9fa3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: v3bCJzlFYh43mfaqD9L3aQEvY9CclukV5UEAQ0MRdQuo2H+MnJjsqkfIBZBeXL6C57Ex6pYg0TCzn8tH+k8/KaMzmWz1mn7pgsslvcLatTztt+PW10UWQ/dA8JePisVfx31pJ2TfsN+QV4uqAxng9tDvaRGVHjjYTorHAdjASxkhyNgyXkgiOB3Gh4yx6oI7C7oJP7968mu67F8FJ48lzS91cnS3EVm8jo7Od7dUbFtkHtjYkNIG3yFy8FwDDkE0M9x3jZNW9pb4xEIllC7bZsADrDu/hQqmeYy9ri7eXR1dUuWwiECAFXhZn+A6RxKlIoiSUTAgx9+KfLJKtYXfDzIrzRL6taPjv7J3Akp/QXdW9EfEWOYeUpi0Yfjv41a4MkwfL7S8brljWFewXeiuUqO+bZ6aJ1KxH8RqgemXWfZqeZ48GXneO6qGlsjOtRt6xn2WV132CQSONWO73T+jtYvQ3iSuSigUmYIT+5zFCPPzwqinevZhfjU0xrWTHJwUAeYfQTQnROZH8Ew98hVXk2wJ4lGYwv2lkbxCmAlk1fvQeSiyWArygrPSY2U7FwpzE3jfp7eRxcLWl83OY7FfPDqTlzRLUd0TgiiAWGgk9p8qyqH3KjoYOholhmNHilzN x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:LV2PR11MB5997.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(39860400002)(376002)(366004)(346002)(136003)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(38070700009)(41300700001)(86362001)(107886003)(55016003)(26005)(33656002)(83380400001)(71200400001)(82960400001)(122000001)(38100700002)(53546011)(9686003)(478600001)(316002)(6916009)(76116006)(66476007)(54906003)(66946007)(66556008)(7696005)(6506007)(64756008)(66446008)(8676002)(8936002)(52536014)(5660300002)(4326008)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?203wpUGPYdQUoh37KxMPJElJwnzRcNMjasb3i9rmEfX8U+ZJe+roUS9JHopU?= =?us-ascii?Q?1uI6cJZ1W0HwdAo0RNorwECWh6X/tNyP63aUVF+3VEnqGEjrqF3DihDd/2H7?= =?us-ascii?Q?Q+Mb7ivs93mPXp7l3CQwQ8o2r+zXU1xVXShI/bEAoUtUvWnxVAcbTyJhSkJm?= =?us-ascii?Q?cdNMYAmwHoZlyRWVDuGUiyu58yk88E7EbOBzlRsLfWEgO9EMvq6ZiFKetgrh?= =?us-ascii?Q?i/rkhQXLFamCEF1FHHE6Oa0qEi7s+UkFKzRaQX/Z17Rxa6tW3/WwtZa9mQIP?= =?us-ascii?Q?SXVP05s78kF8bCDJc0wSTgly0p+QY26+M0whCvFuOtnoDtouNXS/7E3JBNPu?= =?us-ascii?Q?S+wu4Xlt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Dl7ARnicknO16tuZv?= =?us-ascii?Q?qojIMq+UTJ+Y9Ev7lffIBHWKVWYKtll/DkjuAYH+pWtR0ch6MM3TrhO2hnlr?= =?us-ascii?Q?SEax5LzkcEasgg5ULeQPSamvUnMdIc8h59D5StqRwmytspAJjZrjXBUvSrYm?= =?us-ascii?Q?OyJylMbHnxXbejZXt1BtZRHNX18pdhsYyOjwf4irqKi81lfAzqG7G8ET8WAE?= =?us-ascii?Q?07cnvOXBXJ2F6N7i+CnP92nO4VR92UuGoQKqMq31KwWnZP6T4p5Dv3Ve1t2q?= =?us-ascii?Q?Zx9ycUoZtzqVVGKrtRyTbljz4av/ffMqJceXFxO82O+3EUercdd+sNUi3ThF?= =?us-ascii?Q?dNRx1d3tQd3vaIRPxD9W6tUZPGrrdss6uoPzhoSA?= 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: LV2PR11MB5997.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 298bfd12-f1a4-4182-6676-08dc050f9fa3 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Dec 2023 06:06:24.0510 (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: 4IOmcMi0mnxfYodFX3luio8mLPWcA0gJ7naPwv2lnLYAoWGaRhdidBop4C5vUtknI1gh9kjQ91D4PaTi38Hdkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5468 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Stephen Hemminger > Sent: Saturday, December 23, 2023 1:18 AM > To: Xing, Beilei > Cc: Burakov, Anatoly ; dev@dpdk.org; > thomas@monjalon.net; ferruh.yigit@amd.com; Richardson, Bruce > ; chenbox@nvidia.com; Cao, Yahui > > Subject: Re: [PATCH 4/4] eal: add new args to choose VFIO mode >=20 > On Fri, 22 Dec 2023 19:44:53 +0000 > beilei.xing@intel.com wrote: >=20 > > From: Beilei Xing > > > > Since now Linux has both of VFIO Container/GROUP & VFIO IOMMUFD/CDEV > > support, user can determine how to probe the PCI device by the new > > args "--vfio-mode". > > > > Use "--vfio-mode=3Dcontainer" to choose VFIO Container/GROUP, and use > > "--vfio-mode=3Diommufd" to choose VFIO IOMMUFD/CDEV. > > > > Signed-off-by: Beilei Xing > > Signed-off-by: Yahui Cao >=20 > Can't this be automatic, users don't need more EAL options. Thanks for your review. Since Linux supports both VFIO Container/GROUP and = VFIO OMMUFD/CDEV currently, I think user can choose which mode they want. The ne= w IOMMU features (e.g. PASID/SSID) may be only available through VFIO IOMMUFD= /CDEV interface, VFIO Container/GROUP may be deprecated in future, and then DPDK = will use iommufd mode automatically. .=20