From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E432CA0543; Fri, 2 Dec 2022 05:48:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD8C842D14; Fri, 2 Dec 2022 05:48:47 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 60FD640687 for ; Fri, 2 Dec 2022 05:48:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669956526; x=1701492526; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gWwBCQ4+RJXTMbAkNlXBM/z9s+cvOvUso2BPR488P2c=; b=QlfP12lJJPZQzOVRiMBDHD1C+E4TKpFUET6PWdCYOHARdkMPhxPBZ08T OhnPtVcMhmwQcL/viB6ZxAo5PaQ2PyIJMbMjZBCKMzlVOomw7UJxnrVyH bb3DaIjVpairFdeeKprWuqzHUCOUX9wn8PM0LzABMmjM8irGR8UwmkPF7 /zRufXLCUwtqgUF/V3m9iy53Y8RZXaCOIiX87JMVmyxqP8bRLMr9x1Ql5 mWhXgp0d7Oy1HsxWGRvKRIpydfw3hC7Mt4DuFXib7KJ7ppjembvOX66kJ 1J1jWLV2TBSCdPMXKP1XICeOQzakfbXxZ5uU1vl1chOMSlPRGAb69hqgB Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10548"; a="296223857" X-IronPort-AV: E=Sophos;i="5.96,210,1665471600"; d="scan'208";a="296223857" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2022 20:48:45 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10548"; a="675704530" X-IronPort-AV: E=Sophos;i="5.96,210,1665471600"; d="scan'208";a="675704530" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2022 20:48:44 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V2 2/2] framework/virt_base: add pin_threads parameter when start VM Date: Fri, 2 Dec 2022 12:42:53 +0800 Message-Id: <20221202044253.1180232-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Add pin_threads parameter when start VM default pin_threads=True. Signed-off-by: Wei Ling --- framework/virt_base.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/framework/virt_base.py b/framework/virt_base.py index a7fc8c4e..b48d3f89 100644 --- a/framework/virt_base.py +++ b/framework/virt_base.py @@ -273,7 +273,14 @@ class VirtBase(object): self._attach_vm() return None - def start(self, load_config=True, set_target=True, cpu_topo="", bind_dev=True): + def start( + self, + load_config=True, + set_target=True, + cpu_topo="", + bind_dev=True, + pin_threads=True, + ): """ Start VM and instantiate the VM with VirtDut. """ @@ -284,7 +291,7 @@ class VirtBase(object): self.compose_boot_param() # start virtual machine - self._start_vm() + self._start_vm(pin_threads=pin_threads) if self.vm_status is ST_RUNNING: # connect vm dut and init running environment -- 2.25.1