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

* Re: [dts] [PATCH V1] framework/virt_base: add bind_dev parameter in start VM method
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Ling, WeiX @ 2021-07-27  7:46 UTC (permalink / raw)
  To: dts

> -----Original Message-----
> From: Ling, WeiX <weix.ling@intel.com>
> Sent: Tuesday, July 27, 2021 02:30 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] framework/virt_base: add bind_dev parameter in
> start VM method
> 
Tested-by: Wei Ling <weix.ling@intel.com>

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

* Re: [dts] [PATCH V1] framework/virt_base: add bind_dev parameter in start VM method
  2021-07-27  7:46 ` Ling, WeiX
@ 2021-07-29  5:04   ` Wang, Yinan
  2021-08-10  8:55     ` Tu, Lijuan
  0 siblings, 1 reply; 4+ messages in thread
From: Wang, Yinan @ 2021-07-29  5:04 UTC (permalink / raw)
  To: Ling, WeiX, dts

Acked-by:  Yinan Wang <yinan.wang@intel.com>

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> Sent: 2021?7?27? 15:46
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] framework/virt_base: add bind_dev parameter
> in start VM method
> 
> > -----Original Message-----
> > From: Ling, WeiX <weix.ling@intel.com>
> > Sent: Tuesday, July 27, 2021 02:30 PM
> > To: dts@dpdk.org
> > Cc: Ling, WeiX <weix.ling@intel.com>
> > Subject: [dts][PATCH V1] framework/virt_base: add bind_dev parameter in
> > start VM method
> >
> Tested-by: Wei Ling <weix.ling@intel.com>

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

* Re: [dts] [PATCH V1] framework/virt_base: add bind_dev parameter in start VM method
  2021-07-29  5:04   ` Wang, Yinan
@ 2021-08-10  8:55     ` Tu, Lijuan
  0 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2021-08-10  8:55 UTC (permalink / raw)
  To: Wang, Yinan, Ling, WeiX, dts



> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Wang, Yinan
> Sent: 2021年7月29日 13:05
> To: Ling, WeiX <weix.ling@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] framework/virt_base: add bind_dev parameter in
> start VM method
> 
> Acked-by:  Yinan Wang <yinan.wang@intel.com>
> 
> > -----Original Message-----
> > From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> > Sent: 2021?7?27? 15:46
> > To: dts@dpdk.org
> > Subject: Re: [dts] [PATCH V1] framework/virt_base: add bind_dev
> > parameter in start VM method
> >
> > > -----Original Message-----
> > > From: Ling, WeiX <weix.ling@intel.com>
> > > Sent: Tuesday, July 27, 2021 02:30 PM
> > > To: dts@dpdk.org
> > > Cc: Ling, WeiX <weix.ling@intel.com>
> > > Subject: [dts][PATCH V1] framework/virt_base: add bind_dev parameter
> > > in start VM method
> > >
> > Tested-by: Wei Ling <weix.ling@intel.com>

Applied, thanks

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