From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id F02692BB1; Thu, 2 Mar 2017 14:00:54 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2017 05:00:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,231,1484035200"; d="scan'208";a="830122959" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by FMSMGA003.fm.intel.com with ESMTP; 02 Mar 2017 05:00:52 -0800 Date: Thu, 2 Mar 2017 20:59:33 +0800 From: Yuanhan Liu To: mitali Cc: Priyanka , "users@dpdk.org" , "dev@dpdk.org" Message-ID: <20170302125933.GU18844@yliu-dev.sh.intel.com> References: <58AAC534.7000004@cse.iitb.ac.in> <20170222084323.GP18844@yliu-dev.sh.intel.com> <92b5577b-8c8a-e199-3b65-54323dbea48c@cse.iitb.ac.in> <20170223062714.GX18844@yliu-dev.sh.intel.com> <63560385-2261-7213-9e7c-6acef4d290c7@cse.iitb.ac.in> <20170302122342.GS18844@yliu-dev.sh.intel.com> <62e0d38c-f443-53f0-84c6-41a0ac47222d@cse.iitb.ac.in> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62e0d38c-f443-53f0-84c6-41a0ac47222d@cse.iitb.ac.in> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-users] [dpdk-dev] seg fault in InterVM communication using virtio X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2017 13:00:55 -0000 On Thu, Mar 02, 2017 at 06:02:28PM +0530, mitali wrote: > Hi, > > Ok. But with other PMDs like igb, when we are providing sriov vf to VM and > running our client/server dpdk application then there is no issue in > communication between VMs. > As soon as we use virtio setup for VMs and running same dpdk application, it > stops after sending 127 packet and seg fault comes while executing > rte_eth_tx_burst(). We are still not clear why with virtio its creating this > issue but not with any other PMD. No idea. You don't provide any further details. Please, would you just enable the debug info, rebuild, run it with gdb and then dump the call stack after crash? --yliu > > Mitali > > On Thursday 02 March 2017 05:53 PM, Yuanhan Liu wrote: > >On Wed, Mar 01, 2017 at 07:20:37PM +0530, mitali wrote: > >>Hi, > >> > >>We have some doubt regarding virtio front end. As we are running dpdk > >>application inside VM with virtio setup, do we need to use virtio specific > >>functions like virtio_recv_pkts() and virtio_xmit_pkts() to receive and > >>transmit packets, functions for port initialization like > >>virtio_dev_queue_setup()? If yes, we are unable to find any application > >>which uses these functions. Can you provide us some pointers on examples > >>which uses these functions. > >If you are running DPDK inside guest (with virtio), then the virtio is > >yet another PMD, meaning you should program it with the normal DPDK > >ethdev APIs, something like rte_eth_dev_configure, rte_eth_rx/tx_queue_setup, > >etc. > > > > --yliu > >>Thanks, > >>Mitali > >> > >>On Thursday 23 February 2017 11:57 AM, Yuanhan Liu wrote: > >>>On Wed, Feb 22, 2017 at 02:25:29PM +0530, mitali wrote: > >>>>Hi Yuanhan, > >>>> > >>>>We are using virt-manager to start the VMs. We are attaching the image which > >>>>shows the vNIC setup for the VMs. > >>>> > >>>>We have written our own dpdk application to send and receive UDP packets. The > >>>>command we are using is > >>>> > >>>>./build/app/dpdkapi -c 1 -- -p 1 where dpdkapi is our application. > >>>> > >>>>Inside the application we are sending and receiving packets from vNIC using > >>>>rte_eth_tx_burst() and rte_eth_rx_burst(). > >>>> > >>>>At the sender side after 127 packets the application stops and we observe a seg > >>>>fault in dmesg. Using the print statements we observed that it faults in > >>>>rte_eth_tx_burst(). All the 127 were received at the receiving VM. > >>>Would you recompile dpdk with debug info enaled, which could be done by: > >>> > >>> make ... EXTRA_CFLAGS='-g3 -O0' > >>> > >>>And run it with gdb then dump the call stack? > >>> > >>> --yliu