From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EB2DDA0352; Thu, 16 Jan 2020 07:19:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DBCC31BFC4; Thu, 16 Jan 2020 07:19:27 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 9EC361BFC3 for ; Thu, 16 Jan 2020 07:19:26 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2020 22:19:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,325,1574150400"; d="scan'208";a="256812380" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga001.fm.intel.com with ESMTP; 15 Jan 2020 22:19:25 -0800 Received: from fmsmsx163.amr.corp.intel.com (10.18.125.72) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jan 2020 22:19:14 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx163.amr.corp.intel.com (10.18.125.72) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jan 2020 22:19:14 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.28]) with mapi id 14.03.0439.000; Thu, 16 Jan 2020 14:19:13 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]framework/qemu_kvm: fix add multiple e1000 nic can't connect vm Thread-Index: AQHVy4lcb28NXM8e/0uGT6x0gd+65qfs0qMw Date: Thu, 16 Jan 2020 06:19:11 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBAB5C8@SHSMSX101.ccr.corp.intel.com> References: <1579081680-335052-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1579081680-335052-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]framework/qemu_kvm: fix add multiple e1000 nic can't connect vm X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" applied > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Wednesday, January 15, 2020 5:48 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]framework/qemu_kvm: fix add multiple e1000 nic > can't connect vm >=20 > fix can't connect vm when add more than one e1000 devices to vm >=20 > Signed-off-by: Xiao Qimai > --- > framework/qemu_kvm.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py index > 849a4a7..7076d35 100644 > --- a/framework/qemu_kvm.py > +++ b/framework/qemu_kvm.py > @@ -620,7 +620,8 @@ class QEMUKvm(VirtBase): > # init the redirect incoming TCP or UDP connections > # just combine host address and host port, it is enough > # for using ssh to connect with VM > - self.hostfwd_addr =3D host_addr + separator + host_port > + if not hasattr(self, 'hostfwd_addr'): > + self.hostfwd_addr =3D host_addr + separator + host_port >=20 > return hostfwd_line >=20 > -- > 2.17.1