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 67E2345DCD; Fri, 29 Nov 2024 14:43:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F03040E12; Fri, 29 Nov 2024 14:43:03 +0100 (CET) Received: from fhigh-a7-smtp.messagingengine.com (fhigh-a7-smtp.messagingengine.com [103.168.172.158]) by mails.dpdk.org (Postfix) with ESMTP id 57A0C40DD5 for ; Fri, 29 Nov 2024 14:42:58 +0100 (CET) Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.phl.internal (Postfix) with ESMTP id C38B011400E3; Fri, 29 Nov 2024 08:42:57 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Fri, 29 Nov 2024 08:42:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1732887777; x=1732974177; bh=5fR6DNCAk4a21fu1ZIJGwDTYoPSOA1ADt+p7On3g7A4=; b= VnLbHrfijVbzWMeLXAjs/BjnmCXd2LQHf8QATR0vtisBLBGZAYK4lMi320YunZZ7 s5ZVx8nrdBrgx8Hw7/WC4Q4MOx5JbcwE8RBCLcf8MbPKhccxD2+6V+2O/fVqrk4f EldWjQF5QrlGIVMnjg8Hna3lAtcF2gK40u2oikK+qMEn+6RYkXZTi2VFBIjVlYJ+ Vey+LAblfAa5vyBm7gY1Hubtrt7JUSFFEFF/r/Lvtbb8tZfufGH45RYB5HV574Ih Ubb5F0zgrBGcy1PutK0u+gD+zuA7rwspzX/AZ1D0av12akLmgxljlcJb1YUxVIOJ BLthUXnSM1tln9TjsrxuPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732887777; x= 1732974177; bh=5fR6DNCAk4a21fu1ZIJGwDTYoPSOA1ADt+p7On3g7A4=; b=B C8r6kwrnmZRjSmPcdlhlE1dWX403qTBjRaQsIwc6ymnJr44DYn37oH+R6WxuNIk7 ZIGjy4K1ffmpSnF0L1vbaLy16VLnX4aRpIpN+4XGDwdgDinGi9q5m6zMBRgs8y/m GnnIhrH9vJmcv7P+dNh9l4aDvT9vgduzxHjUyI563W3YwPNnSncSREcMyXBIstaW jSDXRzLarPjwNx4Sc3USlaCGD8lcxsnEfLL/ZcOORJPE8/aiQBdJBuEL5wxGExIS 6OFZ/F2joC9/8l42zWF9s6w1fggnpyEHIrIx6LrtYjrjZxQJ5g732gx4mmynj8th ANaiqDweQUF51MNmHo12A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrheefgdehgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecu hfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlh honhdrnhgvtheqnecuggftrfgrthhtvghrnhepjeduveehieevuddutdevfffgtdegkeeu veejffejgedtgeegkefgvdeugfefkeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvthdpnhgs pghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnrghtoh hlhidrsghurhgrkhhovhesihhnthgvlhdrtghomhdprhgtphhtthhopeguvghvseguphgu khdrohhrghdprhgtphhtthhopehrjhgrrhhrhiesrhgvughhrghtrdgtohhm X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Nov 2024 08:42:56 -0500 (EST) From: Thomas Monjalon To: Anatoly Burakov Cc: dev@dpdk.org, Robin Jarry Subject: Re: [PATCH v3 1/1] usertools/devbind: allow changing UID/GID for VFIO Date: Fri, 29 Nov 2024 14:42:54 +0100 Message-ID: <3518999.QJadu78ljV@thomas> In-Reply-To: <251f3e1bf71c3e873427708d566f677ecd50615c.1732698829.git.anatoly.burakov@intel.com> References: <4cd0282dabfa59e715028ecf255468529655b487.1725285449.git.anatoly.burakov@intel.com> <251f3e1bf71c3e873427708d566f677ecd50615c.1732698829.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" 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 27/11/2024 10:13, Anatoly Burakov: > 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 > --- > > Notes: > v2 -> v3: > - Replaced error printout back to hard exit > - Reworked UID/GID validation to be at command line parsing > - Simplified chown code > > v1 -> v2: > - Replaced hard exit with an error printout > > usertools/dpdk-devbind.py | 41 ++++++++++++++++++++++++++++++++++++--- Please could you update the documentation? doc/guides/tools/devbind.rst