From mboxrd@z Thu Jan 1 00:00:00 1970 From: ppnaik Subject: Re: seg fault in InterVM communication using virtio Date: Thu, 02 Mar 2017 16:43:19 +0530 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: mitali , , To: Yuanhan Liu Return-path: Received: from smtp1.iitb.ac.in (smtp1.iitb.ac.in [103.21.127.13]) by dpdk.org (Postfix) with ESMTP id 7F58E2952 for ; Thu, 2 Mar 2017 12:13:22 +0100 (CET) Received: from ldns1.iitb.ac.in (ldns1.iitb.ac.in [10.200.12.1]) by smtp1.iitb.ac.in (Postfix) with SMTP id 9EC091CF for ; Thu, 2 Mar 2017 16:43:21 +0530 (IST) In-Reply-To: <20170223062714.GX18844@yliu-dev.sh.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. Thanks, Priyanka On 2017-02-23 11:57, 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