test suite reviews and discussions
 help / color / mirror / Atom feed
From: Wei Ling <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Wei Ling <weix.ling@intel.com>
Subject: [dts] [PATCH V1] framework/virt_base: add bind_dev parameter in start VM method
Date: Tue, 27 Jul 2021 14:29:33 +0800	[thread overview]
Message-ID: <20210727062933.4089848-1-weix.ling@intel.com> (raw)

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


             reply	other threads:[~2021-07-27  6:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27  6:29 Wei Ling [this message]
2021-07-27  7:46 ` Ling, WeiX
2021-07-29  5:04   ` Wang, Yinan
2021-08-10  8:55     ` Tu, Lijuan

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