test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework/virt_base: add bind_dev parameter in start VM method
@ 2021-07-27  6:29 Wei Ling
  2021-07-27  7:46 ` Ling, WeiX
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Ling @ 2021-07-27  6:29 UTC (permalink / raw)
  To: dts; +Cc: Wei Ling

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@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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-10  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27  6:29 [dts] [PATCH V1] framework/virt_base: add bind_dev parameter in start VM method Wei Ling
2021-07-27  7:46 ` Ling, WeiX
2021-07-29  5:04   ` Wang, Yinan
2021-08-10  8:55     ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).