On Wed, 12 Oct 2022 17:38:17 +0500
Fidaullah Noonari <fidaullah.noon...@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.noon...@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:

Reply via email to