From: Wei Ling <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Wei Ling <weix.ling@intel.com>
Subject: [dts][PATCH V2 2/2] framework/virt_base: add pin_threads parameter when start VM
Date: Fri, 2 Dec 2022 12:42:53 +0800 [thread overview]
Message-ID: <20221202044253.1180232-1-weix.ling@intel.com> (raw)
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(-)
diff --git a/framework/virt_base.py b/framework/virt_base.py
index a7fc8c4e..b48d3f89 100644
--- a/framework/virt_base.py
+++ b/framework/virt_base.py
@@ -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
--
2.25.1
reply other threads:[~2022-12-02 4:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221202044253.1180232-1-weix.ling@intel.com \
--to=weix.ling@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).