[V2,2/2] framework/virt_base: add pin_threads parameter when start VM
Checks
Commit Message
Add pin_threads parameter when start VM default pin_threads=True.
Signed-off-by: Wei Ling <weix.ling@intel.com>
---
framework/virt_base.py | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
@@ -273,7 +273,14 @@ 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 +291,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