From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id DA0B5376E for ; Thu, 26 Feb 2015 16:12:03 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 26 Feb 2015 07:03:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,653,1418112000"; d="scan'208";a="672089068" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by fmsmga001.fm.intel.com with ESMTP; 26 Feb 2015 07:12:01 -0800 Received: from orsmsx115.amr.corp.intel.com (10.22.240.11) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 26 Feb 2015 07:12:01 -0800 Received: from orsmsx102.amr.corp.intel.com ([169.254.1.111]) by ORSMSX115.amr.corp.intel.com ([169.254.10.201]) with mapi id 14.03.0195.001; Thu, 26 Feb 2015 07:12:01 -0800 From: "Polehn, Mike A" To: Srinivasreddy R , "dev@dpdk.org" , "dpdk-ovs@lists.01.org" Thread-Topic: [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM Thread-Index: AQHQUc4qp7S/xP8qtUOJTIdtkis4yp0DBxzg Date: Thu, 26 Feb 2015 15:12:00 +0000 Message-ID: <745DB4B8861F8E4B9849C970520ABBF1496BD5CC@ORSMSX102.amr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 26 Feb 2015 16:46:32 +0100 Subject: Re: [dpdk-dev] [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 15:12:04 -0000 In this example, the control network 00:03.0, remains unbound to UIO driver= but remains attached to Linux device driver (ssh access with putty) and just the target interfa= ces are bound. Below, it shows all 3 interfaces bound to the uio driver, which are not usa= ble until a task uses the UIO driver.=20 [root@F21vm l3fwd-vf]# lspci -nn 00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] = [8086:1237] (rev 02) 00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Trit= on II] [8086:7000] 00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE [Natoma/T= riton II] [8086:7010] 00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:711= 3] (rev 03) 00:02.0 VGA compatible controller [0300]: Cirrus Logic GD 5446 [1013:00b8] 00:03.0 Ethernet controller [0200]: Red Hat, Inc Virtio network device [1af= 4:1000] 00:04.0 Ethernet controller [0200]: Intel Corporation XL710/X710 Virtual Fu= nction [8086:154c] (rev 01) 00:05.0 Ethernet controller [0200]: Intel Corporation XL710/X710 Virtual Fu= nction [8086:154c] (rev 01) [root@F21vm l3fwd-vf]# /usr/src/dpdk/tools/dpdk_nic_bind.py --bind=3Digb_ui= o 00:04.0 [root@F21vm l3fwd-vf]# /usr/src/dpdk/tools/dpdk_nic_bind.py --bind=3Digb_ui= o 00:05.0 [root@F21vm l3fwd-vf]# /usr/src/dpdk/tools/dpdk_nic_bind.py --status Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:04.0 'XL710/X710 Virtual Function' drv=3Digb_uio unused=3Di40evf 0000:00:05.0 'XL710/X710 Virtual Function' drv=3Digb_uio unused=3Di40evf Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:03.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvirtio= _pci,igb_uio Other network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -----Original Message----- From: Dpdk-ovs [mailto:dpdk-ovs-bounces@lists.01.org] On Behalf Of Srinivas= reddy R Sent: Thursday, February 26, 2015 6:11 AM To: dev@dpdk.org; dpdk-ovs@lists.01.org Subject: [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM hi , I have written sample program for usvhost supported by ovdk. i have initialized VM using the below command . On the VM : I am able to see two interfaces . and working fine with traffic in rawsocke= t mode . my problem is when i bind the interfaces to pmd driver[ ibg_uio ] my virtua= l machine is getting hanged . and i am not able to access it further . now my question is . what may be the reason for the behavior . and how can = in debug the root cause . please help in finding out the problem . ./tools/dpdk_nic_bind.py --status Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:03.0 '82540EM Gigabit Ethernet Controller' if=3Dens3 drv=3De1000 un= used=3Digb_uio *Active* 0000:00:04.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Digb_ui= o 0000:00:05.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Digb_ui= o Other network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ./dpdk_nic_bind.py --bind=3Digb_uio 00:04.0 00:05.0 ./x86_64-softmmu/qemu-system-x86_64 -cpu host -boot c -hda /home/utils/ima= ges/vm1.img -m 2048M -smp 3 --enable-kvm -name 'VM1' -nographic -vnc :1 -pidfile /tmp/vm1.pid -drive file=3Dfat:rw:/tmp/qemu_sha= re,snapshot=3Doff -monitor unix:/tmp/vm1monitor,server,nowait -net none -n= o-reboot -mem-path /dev/hugepages -mem-prealloc -netdev type=3Dtap,id=3Dnet= 1,script=3Dno,downscript=3Dno,ifname=3Dusvhost1,vhost=3Don -device virtio-n= et-pci,netdev=3Dnet1,mac=3D00:16:3e:00:03:03,csum=3Doff,gso=3Doff,guest_tso= 4=3Doff,guest_tso6=3Doff,guest_ecn=3Doff -netdev type=3Dtap,id=3Dnet2,script=3Dno,downscript=3Dno,ifname=3Dusvhost2,= vhost=3Don -device virtio-net-pci,netdev=3Dnet2,mac=3D00:16:3e:00:03:04,csum=3Doff,gso=3Doff,g= uest_tso4=3Doff,guest_tso6=3Doff,guest_ecn=3Doff ---------- thanks srinivas. _______________________________________________ Dpdk-ovs mailing list Dpdk-ovs@lists.01.org https://lists.01.org/mailman/listinfo/dpdk-ovs