[dts] [PATCH V1] framework/virt_base: add bind_dev parameter in start VM method
Wei Ling
weix.ling at intel.com
Tue Jul 27 08:29:33 CEST 2021
In VM, no need to bind the nic to DPDK sometimes,
so add bind_dev parameter in the start VM method.
Signed-off-by: Wei Ling <weix.ling at intel.com>
---
framework/virt_base.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/framework/virt_base.py b/framework/virt_base.py
index b582f855..f19cbc4b 100644
--- a/framework/virt_base.py
+++ b/framework/virt_base.py
@@ -275,7 +275,7 @@ class VirtBase(object):
self._attach_vm()
return None
- def start(self, load_config=True, set_target=True, cpu_topo=''):
+ def start(self, load_config=True, set_target=True, cpu_topo='', bind_dev=True):
"""
Start VM and instantiate the VM with VirtDut.
"""
@@ -290,7 +290,7 @@ class VirtBase(object):
if self.vm_status is ST_RUNNING:
# connect vm dut and init running environment
- vm_dut = self.instantiate_vm_dut(set_target, cpu_topo, autodetect_topo=True)
+ vm_dut = self.instantiate_vm_dut(set_target, cpu_topo, bind_dev=bind_dev, autodetect_topo=True)
else:
vm_dut = None
--
2.25.1
More information about the dts
mailing list