test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1 2/2] framework/virt_base: add pin_threads option when start VM
@ 2022-12-02  4:33 Wei Ling
  0 siblings, 0 replies; only message in thread
From: Wei Ling @ 2022-12-02  4:33 UTC (permalink / raw)
  To: dts; +Cc: Wei Ling

Add pin_threads option when start VM, default pin_threads=True.

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 a7fc8c4e..e3aecb60 100644
--- a/framework/virt_base.py
+++ b/framework/virt_base.py
@@ -273,7 +273,7 @@ class VirtBase(object):
         self._attach_vm()
         return None
 
-    def start(self, load_config=True, set_target=True, cpu_topo="", bind_dev=True):
+    def start(self, load_config=True, set_target=True, cpu_topo="", bind_dev=True, pin_threads=True):
         """
         Start VM and instantiate the VM with VirtDut.
         """
@@ -284,7 +284,7 @@ class VirtBase(object):
             self.compose_boot_param()
 
             # start virtual machine
-            self._start_vm()
+            self._start_vm(pin_threads=pin_threads)
 
             if self.vm_status is ST_RUNNING:
                 # connect vm dut and init running environment
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-02  4:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-02  4:33 [dts][PATCH V1 2/2] framework/virt_base: add pin_threads option when start VM Wei Ling

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).