* [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp
@ 2015-12-22 6:01 xu,huilong
2015-12-22 6:01 ` [dts] [PATCH V2 2/3] remove auto_portmap parameter xu,huilong
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: xu,huilong @ 2015-12-22 6:01 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
dep/QMP/qemu-ga-client | 0
dep/QMP/qmp.py | 0
2 files changed, 0 insertions(+), 0 deletions(-)
mode change 100644 => 100755 dep/QMP/qemu-ga-client
mode change 100644 => 100755 dep/QMP/qmp.py
diff --git a/dep/QMP/qemu-ga-client b/dep/QMP/qemu-ga-client
old mode 100644
new mode 100755
diff --git a/dep/QMP/qmp.py b/dep/QMP/qmp.py
old mode 100644
new mode 100755
--
1.9.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dts] [PATCH V2 2/3] remove auto_portmap parameter
2015-12-22 6:01 [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp xu,huilong
@ 2015-12-22 6:01 ` xu,huilong
2015-12-22 6:01 ` [dts] [PATCH V2 3/3] used create_portmap get portmap xu,huilong
2015-12-23 7:14 ` [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp Liu, Yong
2 siblings, 0 replies; 4+ messages in thread
From: xu,huilong @ 2015-12-22 6:01 UTC (permalink / raw)
To: dts
remove auto_portmap parameter when init virt dut.
because set portmap by crete_portmap function
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
framework/virt_base.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/framework/virt_base.py b/framework/virt_base.py
index 4a445d1..1d0c282 100644
--- a/framework/virt_base.py
+++ b/framework/virt_base.py
@@ -224,7 +224,7 @@ class VirtBase(object):
self.load_global_config()
self.load_local_config(self.suite)
- def start(self, load_config=True, set_target=True, cpu_topo='', auto_portmap=True, bind_dev=True):
+ def start(self, load_config=True, set_target=True, cpu_topo='', bind_dev=True):
"""
Start VM and instantiate the VM with VirtDut.
"""
@@ -238,7 +238,7 @@ class VirtBase(object):
self._start_vm()
# connect vm dut and init running environment
- vm_dut = self.instantiate_vm_dut(set_target, cpu_topo, auto_portmap)
+ vm_dut = self.instantiate_vm_dut(set_target, cpu_topo)
except Exception as vm_except:
if self.handle_exception(vm_except):
print dts.RED("Handled expection " + str(type(vm_except)))
@@ -293,7 +293,7 @@ class VirtBase(object):
"""
NotImplemented
- def instantiate_vm_dut(self, set_target=True, cpu_topo='', auto_portmap=True, bind_dev=True):
+ def instantiate_vm_dut(self, set_target=True, cpu_topo='', bind_dev=True):
"""
Instantiate the Dut class for VM.
"""
@@ -341,7 +341,7 @@ class VirtBase(object):
try:
# setting up dpdk in vm, must call at last
- vm_dut.prerequisites(dts.Package, dts.Patches, auto_portmap)
+ vm_dut.prerequisites(dts.Package, dts.Patches)
if set_target:
target = self.host_dut.target
vm_dut.set_target(target, bind_dev)
--
1.9.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dts] [PATCH V2 3/3] used create_portmap get portmap
2015-12-22 6:01 [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp xu,huilong
2015-12-22 6:01 ` [dts] [PATCH V2 2/3] remove auto_portmap parameter xu,huilong
@ 2015-12-22 6:01 ` xu,huilong
2015-12-23 7:14 ` [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp Liu, Yong
2 siblings, 0 replies; 4+ messages in thread
From: xu,huilong @ 2015-12-22 6:01 UTC (permalink / raw)
To: dts
when not config ports in ./config/port.cfg for vm port, used ping6 auto get portmap
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
framework/virt_dut.py | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/framework/virt_dut.py b/framework/virt_dut.py
index 8d0c5d9..108fef6 100644
--- a/framework/virt_dut.py
+++ b/framework/virt_dut.py
@@ -98,6 +98,10 @@ class VirtDut(DPDKdut):
return
def create_portmap(self):
+ # if not config ports in vm port config file, used ping6 get portmap
+ if not self.ports_cfg:
+ self.map_available_ports()
+ return
port_num = len(self.ports_info)
self.ports_map = [-1] * port_num
for key in self.ports_cfg.keys():
@@ -136,7 +140,7 @@ class VirtDut(DPDKdut):
if bind_dev:
self.bind_interfaces_linux('igb_uio')
- def prerequisites(self, pkgName, patch, auto_portmap):
+ def prerequisites(self, pkgName, patch):
"""
Prerequest function should be called before execute any test case.
Will call function to scan all lcore's information which on DUT.
@@ -172,18 +176,13 @@ class VirtDut(DPDKdut):
# no need to rescan ports for guest os just bootup
# load port infor from config file
- if auto_portmap is False:
- self.load_portconf()
+ self.load_portconf()
# enable tester port ipv6
self.host_dut.enable_tester_ipv6()
self.mount_procfs()
- if auto_portmap:
- # auto detect network topology
- self.map_available_ports()
- else:
- self.create_portmap()
+ self.create_portmap()
# disable tester port ipv6
self.host_dut.disable_tester_ipv6()
--
1.9.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp
2015-12-22 6:01 [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp xu,huilong
2015-12-22 6:01 ` [dts] [PATCH V2 2/3] remove auto_portmap parameter xu,huilong
2015-12-22 6:01 ` [dts] [PATCH V2 3/3] used create_portmap get portmap xu,huilong
@ 2015-12-23 7:14 ` Liu, Yong
2 siblings, 0 replies; 4+ messages in thread
From: Liu, Yong @ 2015-12-23 7:14 UTC (permalink / raw)
To: Xu, HuilongX, dts
Applied. Thanks for your support in virtualization framework.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong
> Sent: Tuesday, December 22, 2015 2:01 PM
> To: dts@dpdk.org
> Subject: [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and
> qmp
>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> dep/QMP/qemu-ga-client | 0
> dep/QMP/qmp.py | 0
> 2 files changed, 0 insertions(+), 0 deletions(-)
> mode change 100644 => 100755 dep/QMP/qemu-ga-client
> mode change 100644 => 100755 dep/QMP/qmp.py
>
> diff --git a/dep/QMP/qemu-ga-client b/dep/QMP/qemu-ga-client
> old mode 100644
> new mode 100755
> diff --git a/dep/QMP/qmp.py b/dep/QMP/qmp.py
> old mode 100644
> new mode 100755
> --
> 1.9.3
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-12-23 7:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-22 6:01 [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp xu,huilong
2015-12-22 6:01 ` [dts] [PATCH V2 2/3] remove auto_portmap parameter xu,huilong
2015-12-22 6:01 ` [dts] [PATCH V2 3/3] used create_portmap get portmap xu,huilong
2015-12-23 7:14 ` [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp Liu, Yong
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).