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 0F3AD45DAB; Tue, 26 Nov 2024 16:24:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 91AE540268; Tue, 26 Nov 2024 16:24:36 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by mails.dpdk.org (Postfix) with ESMTP id 751474025F for ; Tue, 26 Nov 2024 16:24:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732634675; x=1764170675; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=9RFf1yp9XwXL4rn7gHsYxSvlgerEwXSLhnwXTm0UfA0=; b=Q4lfj2ee8jfKV3tswoxux1FNdcve5A2aGPXFTQF4wYJ1mZYZBDKtKQnL /AJi5DaS2w5Mp5ZKyaCex0f5JCEzIlurEavS2wlH/xgSRbVUSvd0D5k8h A4LHFDv9y6eQ8Kbr4PlfDGKVv9mE7vpNVz9o8lqFdNrKgxEMGDGiO8rik lYerT7QBzrQ9bMWrUlJhHyqfanHUqpQGwaycJlRByC72M5vgne25hyWGf 4HUWNchk188Kp7kLjjMzMcDAt0Ss0KigHAl+eMY3L8jzbCBWA2oEwjUkO yBfSmZKo8vdfYzm4qw3Uk4e7GNrb3Ips7idvmGbr3YnKrJauPt9KGN09W Q==; X-CSE-ConnectionGUID: 2QY9CVszSEqCQEcUpV6jkQ== X-CSE-MsgGUID: ATFd7vcKR9igSp4l7t9hlA== X-IronPort-AV: E=McAfee;i="6700,10204,11268"; a="36463192" X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="36463192" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 07:24:33 -0800 X-CSE-ConnectionGUID: uW4KFSfkQlCvWNWbPnxFsA== X-CSE-MsgGUID: d/CwwSQmR+OaAZPbPdK+Rw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="91973824" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmviesa010.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 26 Nov 2024 07:24:33 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) 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.39; Tue, 26 Nov 2024 07:24:32 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.39 via Frontend Transport; Tue, 26 Nov 2024 07:24:32 -0800 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.47) 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.39; Tue, 26 Nov 2024 07:24:30 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F09HSaB8XmvafNuJFORiBIiSLhf3zM4BemRAvkuk7UMKTZc2LjcKuZm9WfPmHbUVSUbndJk2bxGMpKMK1VvR9IAQqGWxo6scJ/h7nwmJpQ9IZ8pr+2236Vb9OF3ZtdxYzR60Mrnc1x7HjfMLVWDp50eovxhyRykVIgrQ5B2G+OqOYmoH+CRDDX4jS+FNLfHDCerdJH3Sfxj2K7ZwzyoxGuttDzkUt2NnHedKYGPwcGUEJFnjDzeiKaabZhIdgEJhzyEepfmUz2i935YBLONqn3XayJ/nnaoj1B5jiMazRGQDW24Po3yE2JBTq6GUEnrZLpRANxqShWO8rvC4ek7yoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=pizdvsbuyntNqkpPtEDl735znl9DcnwBhQJ4eNKhqKU=; b=B9cnTMm64Fw/DUa9K9qZOGFuP3w9DO0/cIwH+oxU6w4U9Z2k2NStsUCsROO+JJlsK61AchDMi6e8lXcxqvY/ezBNVSKzaOWBG7nx7QkPEJc3F6y9JeaiBMbBzrxd37enPfPHHdCzRwzpdiXQ3QKlFwUR59YV4pw/w0MGNv/s+12weCNluuPAf5Nkmwqa9qEBQKkjkfVFbzp12nyDb2X8AboT2WKcYHr9u4xc70WwOoISdzCybP2+HGrlAYy6aMeO40JRvpyhT5PJNxb2gzMYt+3aeIkgFOUW+0yu0dT+pkAptMtUQMAQCYSFgPrWMYmZKI+KbWDYXDDm/FYZLT3YhA== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by DM4PR11MB6018.namprd11.prod.outlook.com (2603:10b6:8:5e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.21; Tue, 26 Nov 2024 15:24:27 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%4]) with mapi id 15.20.8093.018; Tue, 26 Nov 2024 15:24:27 +0000 Date: Tue, 26 Nov 2024 15:24:22 +0000 From: Bruce Richardson To: Anatoly Burakov CC: , Robin Jarry Subject: Re: [PATCH v2 1/1] usertools/devbind: allow changing UID/GID for VFIO Message-ID: References: <4cd0282dabfa59e715028ecf255468529655b487.1725285449.git.anatoly.burakov@intel.com> <3dba72cacdb5bc71e743dd84cd44e5dcde77aee7.1732633351.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <3dba72cacdb5bc71e743dd84cd44e5dcde77aee7.1732633351.git.anatoly.burakov@intel.com> X-ClientProxiedBy: LO2P265CA0478.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::34) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|DM4PR11MB6018:EE_ X-MS-Office365-Filtering-Correlation-Id: 55c51355-e3f8-4638-4938-08dd0e2e6a6f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?LNyZX6U+7OBkchP7FiJuk64mCdVZTto/tqaKZaIPBo6QOWJleCrNAGdueJhw?= =?us-ascii?Q?Ykhw9im6RsENvfyONM1qKMTM+bxWJTJQEM6nZQ8T4JVqRZbrMR2IJwp1CrB5?= =?us-ascii?Q?1OEKSLbvlLaz+A9CKI7F1LhPGjJXkwlJ62gC+1jpbKhs2S/ZoE1ydbSv4BH1?= =?us-ascii?Q?rQhvgZVRi1MQoqNXB5Nqs3PceLnhl4Gm7ncmX9+bgOofguEriNogv914RFuo?= =?us-ascii?Q?wYDZo+5kqxkOP3TeZgcEIaSKtnjw0nBtbEbclIO02gt86ZKz1QLzWOU3jhLV?= =?us-ascii?Q?1cFjyztlxJ/laO2++Tx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mw/3f?= =?us-ascii?Q?o8GhXo/2W2gAXAEGN13WEbArJpAt3wThaYLQ2RQXNCRSSQ0Nygxhcnq5dBsz?= =?us-ascii?Q?d9QbghtCOGuJfR3focR727aV09AUNaVf3IqpJSpIMiYzDP8rQH4Noo7bco4G?= =?us-ascii?Q?CRnyiTRcLeKeW9fE+4qZ601Cwbcgb3pTvbSEhZP+N05g4w=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?WSxwnJSCDHlXoIeBYpnVqMTKsgIXUsyfEsSl4zcHoL5cGUzQyjWVRXO+WbGK?= =?us-ascii?Q?TvaxpiFRCis6aCcScJ17zsq1cP/ZwRbIl+RN5EWG/mY46pLuQMXdSO/MQ1wT?= =?us-ascii?Q?emuZLVEWXNqUFg17ZKXI/Ql77bt/jyJw0pglOPDo5i5fvlZmOBlbC19ZzSpt?= =?us-ascii?Q?AZ9RGFlarOPpE2Y/y1R15CFFHj0VH1Tu9fQ1qQQgxETT309zzqAp4yZ1nWck?= =?us-ascii?Q?ltocr0NCFZdI+8oMFhN/fhu/yqJ/llb44jyJiHuuDMdBMAZviSb0bLRTdz30?= =?us-ascii?Q?jzqglDnJWiuFgLjj151P78iaoi1tBDBFgpom6IVP7yVa0kpzFhVaRjxg2mN2?= =?us-ascii?Q?P46uCCn10v4PDOnnIJQmPncXTCTtm4Yd4gc4q2HV5DD1/XmCOIJN5e94BfjI?= =?us-ascii?Q?Fr6On3wvzRwIwz1jNSmrmhJrmeUcRRUoUMgEZjaG95Vz4VusFMRYvQIkFGUr?= =?us-ascii?Q?j5GrtT2f/UyG5mcITeAsiZ3hzfF3DqxGjRYd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?Q?DLeYO/Hzl6+JHx/90mjvNkxoIlA4O+Ppee2r6UQjdEV8CUr78c6yro+GlOdI?= =?us-ascii?Q?0HDa77KLrsUHSEmKJsEEHVIteqPyu1BXCb9eOVrA+OjIuTI9hHyHRFP4i8Wg?= =?us-ascii?Q?jfYpnvDVa2wZ02JQIepgkE7tPwDMKy4haBi6P0IyupRHksAJns3TvPqjmwC2?= =?us-ascii?Q?stag6GjXJv061gKFwPQ7R6fRwSFQ7zMj2Qa50kBbRPPqXocu6SMmx3y00Bnw?= =?us-ascii?Q?8w=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 55c51355-e3f8-4638-4938-08dd0e2e6a6f X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 15:24:27.4807 (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: l2aUODzb66BkLLTVpkBEqsN2yyIQxHRlzmHT+p6O80ru9PETiTAtAky5ulKTLUop6qYWoDlVCS61Utu1tlHTPwHwIxwmL/9M3licJbVUC3I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB6018 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 On Tue, Nov 26, 2024 at 03:02:38PM +0000, Anatoly Burakov wrote: > Currently, when binding a device to VFIO, the UID/GID for the device will > always stay as system default (`root`). Yet, when running DPDK as non-root > user, one has to change the UID/GID of the device to match the user's > UID/GID to use the device. > > This patch adds an option to `dpdk-devbind.py` to change the UID/GID of > the device when binding it to VFIO. > > Signed-off-by: Anatoly Burakov > --- Acked-by: Bruce Richardson