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 A59AEA0523; Thu, 2 Jul 2020 09:17:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6F7431D93B; Thu, 2 Jul 2020 09:17:45 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 505C01D6B5 for ; Thu, 2 Jul 2020 09:17:43 +0200 (CEST) IronPort-SDR: 8rI3fa6mwgSwoRKUm7SJoj517TJJeTIch09CXTmtLx1NHJltr+znRlcqPCvCFfPPcXGxzSnt3t erDBnAR0MbPA== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="126435175" X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="126435175" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 00:17:42 -0700 IronPort-SDR: zGJM4n6HWnTw+KcPLC/EP6y5F/39pQ18PNF3rBEkY7guyVOPry82OmWTkeCq5Bp6LHrA1wiJgX j637YZsIkM7Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="295803484" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga002.jf.intel.com with ESMTP; 02 Jul 2020 00:17:42 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 2 Jul 2020 00:17:41 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 2 Jul 2020 00:17:41 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 2 Jul 2020 00:17:41 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by shsmsx102.ccr.corp.intel.com ([169.254.2.36]) with mapi id 14.03.0439.000; Thu, 2 Jul 2020 15:17:38 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]tests/TestSuite_vm_hotplug: optimize test case load vfio-pci in vm Thread-Index: AQHWT3udq70gB2OhckCRsL9Q13Nphajz4rZA Date: Thu, 2 Jul 2020 07:17:37 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC68D8E@SHSMSX101.ccr.corp.intel.com> References: <1593589014-42912-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1593589014-42912-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="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]tests/TestSuite_vm_hotplug: optimize test case load vfio-pci in 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, thanks > -----Original Message----- > From: dts On Behalf Of Xiao Qimai > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B1=1B$BF|=1B(B 15:37 > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]tests/TestSuite_vm_hotplug: optimize test case l= oad > vfio-pci in vm >=20 > *. vfio-pci has been loaded by default in framework >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_vm_hotplug.py | 15 ++------------- > 1 file changed, 2 insertions(+), 13 deletions(-) >=20 > diff --git a/tests/TestSuite_vm_hotplug.py b/tests/TestSuite_vm_hotplug.p= y > index 45cfc89..2dfd835 100644 > --- a/tests/TestSuite_vm_hotplug.py > +++ b/tests/TestSuite_vm_hotplug.py > @@ -96,18 +96,6 @@ class TestVmHotplug(TestCase): > self.vm0_dut =3D self.connect_vm() > self.verify(self.vm0_dut is not None, 'vm start fail') > self.setup_pf_1vm_env_flag =3D 1 > - # load vfio > - self.vm0_dut.send_expect('modprobe -r vfio_iommu_type1', '#') > - self.vm0_dut.send_expect('modprobe -r vfio', '#') > - self.vm0_dut.send_expect('modprobe vfio > enable_unsafe_noiommu_mode=3D1', '#') > - self.vm0_dut.send_expect('modprobe vfio-pci', '#') > - # bind device to vfio > - netdev =3D self.vm0_dut.ports_info[0]['port'] > - netdev.bind_driver(driver=3D'vfio-pci') > - if device =3D=3D 2: > - netdev =3D self.vm0_dut.ports_info[1]['port'] > - netdev.bind_driver(driver=3D'vfio-pci') > - > self.vm_session =3D self.vm0_dut.new_session(suite=3D"vm_session= ") > self.vf_pci0 =3D self.vm0_dut.ports_info[0]['pci'] > if device =3D=3D 2: > @@ -119,7 +107,8 @@ class TestVmHotplug(TestCase): > self.vm0 =3D QEMUKvm(self.dut, 'vm0', 'vm_hotplug') > self.vm0.net_type =3D 'hostfwd' > self.vm0.hostfwd_addr =3D '%s:6000' % self.dut.get_ip_address() > - self.vm0.def_driver =3D 'igb_uio' > + self.vm0.def_driver =3D 'vfio-pci' > + self.vm0.driver_mode =3D 'noiommu' > self.wait_vm_net_ready() > vm_dut =3D self.vm0.instantiate_vm_dut(autodetect_topo=3DFalse) > if vm_dut: > -- > 1.8.3.1