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 26950A04FD; Wed, 15 Jan 2020 10:51:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E42FA1C028; Wed, 15 Jan 2020 10:51:09 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D97A81C00F for ; Wed, 15 Jan 2020 10:51:08 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2020 01:51:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,322,1574150400"; d="scan'208";a="256694596" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.179.33]) by fmsmga002.fm.intel.com with ESMTP; 15 Jan 2020 01:51:06 -0800 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 15 Jan 2020 17:48:00 +0800 Message-Id: <1579081680-335052-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" fix can't connect vm when add more than one e1000 devices to vm Signed-off-by: Xiao Qimai --- framework/qemu_kvm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = host_addr + separator + host_port + if not hasattr(self, 'hostfwd_addr'): + self.hostfwd_addr = host_addr + separator + host_port return hostfwd_line -- 2.17.1