From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ye Xiaolong Subject: Re: [PATCH v8 2/2] examples/vdpa: introduce a new sample for vDPA Date: Thu, 17 Jan 2019 23:13:27 +0800 Message-ID: <20190117151327.GA54315@intel.com> References: <20180928112344.42791-1-xiaolong.ye@intel.com> <20180928214747.48938-1-xiaolong.ye@intel.com> <20180928214747.48938-3-xiaolong.ye@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" , Maxime Coquelin , Tiwei Bie , Zhihong Wang , "xiao.w.wang@intel.com" , Rami Rosen , Wang Haiyue To: Shahaf Shuler Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7AB291150 for ; Thu, 17 Jan 2019 16:13:34 +0100 (CET) Content-Disposition: inline In-Reply-To: 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, On 01/17, Shahaf Shuler wrote: >Hi, > >Going back to this merged commit, > >Saturday, September 29, 2018 12:48 AM, Xiaolong Ye: >> Subject: [dpdk-dev] [PATCH v8 2/2] examples/vdpa: introduce a new sample >> for vDPA >> >> The vdpa sample application creates vhost-user sockets by using the vDPA >> backend. vDPA stands for vhost Data Path Acceleration which utilizes virtio >> ring compatible devices to serve virtio driver directly to enable datapath >> acceleration. As vDPA driver can help to set up vhost datapath, this >> application doesn't need to launch dedicated worker threads for vhost >> enqueue/dequeue operations. >> >> Signed-off-by: Xiaolong Ye >> Acked-by: Xiao Wang >> Reviewed-by: Maxime Coquelin >> --- > >[...] > >> + >> +Start the VMs >> +~~~~~~~~~~~~~ >> + >> +.. code-block:: console >> + >> + qemu-system-x86_64 -cpu host -enable-kvm \ >> + >> + -mem-prealloc \ >> + -chardev socket,id=char0,path= \ >> + -netdev type=vhost-user,id=vdpa,chardev=char0 \ >> + -device >> + virtio-net-pci,netdev=vdpa,mac=00:aa:bb:cc:dd:ee,page-per-vq=on \ > > >It doesn't seems like qemu has the id=vdpa and netdev=vdpa options. >Grepping vdpa on qemu returns empty. > >Am using QEMU v3.1.0-513-gfb177a0. Commit head is fb177a036f2e ("MAINTAINERS: Mark RISC-V as Supported"). > >Did I missed anything? > Not quite sure about your question here, the vdpa used in above qemu cmdline is just a normal string, you can replace it with other string like -netdev type=vhost-user,id=mynet,chardev=char0 \ -device virtio-net-pci,netdev=mynet,... The major support for vdpa is done in dpdk side as the vhost user backend, qemu will use normal vhost user protocol to communicate with it. Thanks, Xiaolong