[PATCH v4] usertools: add check for IOMMU support in dpdk-devbind
Stephen Hemminger
stephen at networkplumber.org
Mon Jul 1 19:51:12 CEST 2024
On Wed, 12 Oct 2022 17:38:17 +0500
Fidaullah Noonari <fidaullah.noonari at emumba.com> wrote:
> binding with vfio driver, when IOMMU is disabled, causes program to crash.
> this patch adds a flag for noiommmu-mode. when this is set, if IOMMU is
> disabled, it changes vfio into unsafe noiommu mode and prints warning
> message.
>
> Signed-off-by: Fidaullah Noonari <fidaullah.noonari at emumba.com>
Not sure why this patch got stuck.
The flake8 tool reports:
usertools/dpdk-devbind.py:489:27: E231 missing whitespace after ','
Fix by:
diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index e7a5665fa2..a089313db1 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -486,7 +486,7 @@ def check_noiommu_mode():
filename = "/sys/module/vfio/parameters/enable_unsafe_noiommu_mode"
try:
- with open(filename,"r") as f:
+ with open(filename, "r") as f:
if f.read(1) == "1":
return
except OSError as err:
More information about the dev
mailing list