From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from COL004-OMC4S2.hotmail.com (col004-omc4s2.hotmail.com [65.55.34.204]) by dpdk.org (Postfix) with ESMTP id A42C7AFDD for ; Wed, 18 Jun 2014 11:18:15 +0200 (CEST) Received: from COL402-EAS122 ([65.55.34.201]) by COL004-OMC4S2.hotmail.com with Microsoft SMTPSVC(7.5.7601.22701); Wed, 18 Jun 2014 02:18:31 -0700 X-TMN: [gnZfgZydDuXelr3R2ugMUgl5xGi0Bzhy] X-Originating-Email: [jinronggong@hotmail.com] Message-ID: From: GongJinrong To: "'Gray, Mark D'" , "'Thomas Monjalon'" References: <2735673.npSoVJ3cPH@xps13> <738D45BC1F695740A983F43CFE1B7EA91B215B37@IRSMSX102.ger.corp.intel.com> In-Reply-To: <738D45BC1F695740A983F43CFE1B7EA91B215B37@IRSMSX102.ger.corp.intel.com> Date: Wed, 18 Jun 2014 17:18:30 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQABAgME7o9GZtaNmPlXjT6iQ2MXJQBSVuGwABG+iZoAmBst5Z8Lxk7Q Content-Language: zh-cn X-OriginalArrivalTime: 18 Jun 2014 09:18:31.0702 (UTC) FILETIME=[45E0AB60:01CF8AD6] Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Can anyone help me to run the l2fwd-ivshmem example? 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: Wed, 18 Jun 2014 09:18:16 -0000 Thanks, Mark, the comment is really help. -----Original Message----- From: Gray, Mark D [mailto:mark.d.gray@intel.com] Sent: Wednesday, June 18, 2014 4:53 PM To: GongJinrong; 'Thomas Monjalon' Cc: dev@dpdk.org Subject: RE: [dpdk-dev] Can anyone help me to run the l2fwd-ivshmem example? > > Hi, > > 2014-06-18 15:56, GongJinrong: > > I want find a zero copy framework from host to vm without any > > physical NIC device, > > I think memnic is what you want: > http://dpdk.org/doc/memnic-pmd > > > it seems l2fwd-ivshmem can be used, but I have problems to run this > > example: > > 1. there is no document about this example, even a simple readme :-( > > 2. does this example need ovdk? > > No > > > 3. can I use standard qemu to run this example? Does the standard > > qemu support ivshmem? > > You should be able to use standard Qemu. Standard QEMU will work for Memnic but not when using DPDK ivshmem. It uses the standard QEMU ivshem and doesn't use DPDK in the way you would like it to You should look at the DPDK vSwitch code to see how DPDK ivshmem is used. Basically, in the host you need to identify what objects that you want to share with the virtual machine e.g. rings, memzones >>From this, you can generate a command line to pass to QEMU (with a modified ivshmem.c file - we haven't tried to upstream this yet) Then when you start a DPDK application in the guest, each of the objects that you shared from the host are also available in the guest. I presume the l2fwd-ivshmem does the same > > -- > Thomas -------------------------------------------------------------- Intel Shannon Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 Business address: Dromore House, East Park, Shannon, Co. Clare This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.