From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [dpdk-virtio] DPDK stopped working on virtio Date: Tue, 23 Feb 2016 15:22:45 +0800 Message-ID: <20160223072245.GB14300@yliu-dev.sh.intel.com> References: <20160223035001.GA21426@yliu-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: Clarylin L Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 123655A54 for ; Tue, 23 Feb 2016 08:21:46 +0100 (CET) Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Feb 22, 2016 at 11:00:28PM -0800, Clarylin L wrote: > I am working with DPDK 2.0.=A0 >=20 > I guess it's not DPDK code issue , but more like an environment issue (= as same > code has been working fine before. It's even working on another setup n= ow). > Someone might have accidentally changed my setup, and I want to find ou= t what > made dpdk-virtio stop working.=A0 >=20 > Is DPDK-virtio dependent on any specific modules on the hypervisor? or = are > there any configurations on the hypervisor that would impact the functi= onality > of =A0virtio? Nope, none that I can think of. > or anything else I need to look into and check? My VM is running on > Ubuntu KVM. The vhost and virtio log? --yliu >=20 > On Mon, Feb 22, 2016 at 7:50 PM, Yuanhan Liu > wrote: >=20 > On Mon, Feb 22, 2016 at 11:15:57AM -0800, Clarylin L wrote: > > I am running DPDK application (testpmd) within a VM based on virt= io. With > > the same hypervisor and same DPDK code, it used to work well. But= it > > stopped working since last week. The VM's port could not receive > anything. > > I ran tcpdump on host's physical port, bridge interface as well a= s vnet > > interface, and did see packets coming in. However on VM's port th= ere was > > nothing. > > > > I ran gdb trying to debug, it hit function virtio_recv_mergeable_= pkts(), > > but nb_used=3DVIRTQUEUE_NUSED(rxvq) always gave 0. I guess it's b= ecause the > > queue was empty. > > > > I enabled the PMD debug logging and the only thing that might be = an issue > > was the following part. Other than this I could not see any thing= that > > could indicate potential issues. > > > > Thu Feb 18 19:20:10 2016^@PMD: get_uio_dev(): Could not find uio = resource > > Thu Feb 18 19:20:10 2016^@PMD: virtio_resource_init_by_ioports():= PCI > Port > > IO found start=3D0xc040 with size=3D0x40 >=20 > That could be normal, when you don't bind the driver to igb_uio. > =20 > > If someone can give any pointers that I should further look into,= that'd > be > > very helpful. Appreciate your help! >=20 > What's the last commit you are testing? And what are the steps > to reproduce it? I have a quick try with vhost-switch example, > with pkts injected by IXIA; it works fine here. >=20 > Or better, mind do a git bisect? There aren't too many commits > there. It should be a pretty fast bisect. >=20 > =A0 =A0 =A0 =A0 --yliu >=20 >=20