The command to modprobe VFIO-PCI will not work without a privileged
command. This patch makes this change.

Bugzilla ID: 1924
Fixes: 1175f18ab85d ("dts: automate VFIO modprobe in node setup")

Signed-off-by: Andrew Bailey <[email protected]>
---
 dts/framework/testbed_model/linux_session.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dts/framework/testbed_model/linux_session.py 
b/dts/framework/testbed_model/linux_session.py
index ee943462c2..63856ad9b5 100644
--- a/dts/framework/testbed_model/linux_session.py
+++ b/dts/framework/testbed_model/linux_session.py
@@ -245,7 +245,7 @@ def load_vfio(self, pf_port: Port) -> None:
                 privileged=True,
             )
         else:
-            self.send_command("modprobe vfio-pci")
+            self.send_command("modprobe vfio-pci", privileged=True)
         self.refresh_lshw()
 
     def create_crypto_vfs(self, pf_port: list[Port]) -> None:
-- 
2.50.1

Reply via email to