[PATCH v3 1/1] usertools/devbind: allow changing UID/GID for VFIO
Thomas Monjalon
thomas at monjalon.net
Fri Nov 29 14:42:54 CET 2024
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 <anatoly.burakov at intel.com>
> ---
>
> 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
More information about the dev
mailing list