From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10069.outbound.protection.outlook.com [40.107.1.69]) by dpdk.org (Postfix) with ESMTP id 86CA714EC for ; Thu, 17 Jan 2019 16:17:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N2pCGFlmdBwpeLOKfpHIwY6bsF717wSx1kfsoz5dAQ8=; b=KW1aHAc0RUcOVipOC3jkkMoawfHb9idwwwRWTfgfhksUiFVDA83eO/6GK8dy/gfKTETHMmuLpFaUqR7hZi0QnB3aKR2GNwDJFVYsQY2CBN7uLxj2Tp/RN4hipvjYEfCl/VJ0w033z/5G27IntFLqmUIgdpoYr1NoB6jvT7rT3Lc= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4186.eurprd05.prod.outlook.com (52.134.107.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1516.18; Thu, 17 Jan 2019 15:17:25 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::45dd:b015:e3e2:bee3]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::45dd:b015:e3e2:bee3%2]) with mapi id 15.20.1516.019; Thu, 17 Jan 2019 15:17:25 +0000 From: Shahaf Shuler To: Ye Xiaolong CC: "dev@dpdk.org" , Maxime Coquelin , Tiwei Bie , Zhihong Wang , "xiao.w.wang@intel.com" , Rami Rosen , Wang Haiyue Thread-Topic: [dpdk-dev] [PATCH v8 2/2] examples/vdpa: introduce a new sample for vDPA Thread-Index: AQHUVzv5EBNZpL9SzEKl6tG4fncB66W0NJoAgAALUoCAAADo8A== Date: Thu, 17 Jan 2019 15:17:25 +0000 Message-ID: References: <20180928112344.42791-1-xiaolong.ye@intel.com> <20180928214747.48938-1-xiaolong.ye@intel.com> <20180928214747.48938-3-xiaolong.ye@intel.com> <20190117151327.GA54315@intel.com> In-Reply-To: <20190117151327.GA54315@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB4186; 6:UHQ2Yj8zLXMMUw9qF6+0DQwig9warglFbnio9n1LmFNK5uknSx94xfFwdzeC532YAz/UBFSYrlBHckjDzK7HZkEcnkCIcAxxkWCrSkKpug+sgapW2cU3RXg8ZmyUpx8zlRYgBdDE0gviEHpk9mPB/0yPQOHu4gu39iDN2rtzA5OUkL/1srRpReSjrQvq9SIuE/ElaIVTzkVo9YNm09pJVG6F0Qzc+7VRGIuKVHh/X9fKo83xT0SBrYFaP+ujzEOLE4oZPEASL/B8WkHR+Fj5dNlBFcKZq4aafyQwPpJ9XM6zOVuIyBAp577h8u6KtDVG6ehIpzYCGhEfeciDuMIiu380HwokkUsZWt1xZWNDtBT2fzYCPRWwwPfMGn1CsikOJy+eHZhnQLyC9BIyOEOHP8zBqAhUZdsujLoRurpmvlBuEHnNYURgvUdgm2HJ/CULBMnlU0UrJmELu9mnBvJNxg==; 5:4nnoTld0ej2U/gQjnoo3Dwj3veqMR9xn1BVRKOuZ4TvO9bSvFyXgE7wV8ob4yeqXGwsBcR6LmceDMuS3lAfu4ZIn9K9o/VP3kj/59t87xEt6G6PaiQ0YxExLOk45G6Zm6Sg9sxXrTCmu5TqJSqV4h6t3KOKO6ZyfJkCZkSHfc5nWpQqcPbFxknnu4yLMCM9VfrIVJ/spczBvErAjTAL8EQ==; 7:dsUNzipYCzUqJhJHNfiKx8VbXOQPj3RfWusmShIOXZY+ZglZtSSTMmImxg2QniMUs6lklExZKPZ9wIIPn+IjoG9nRxVgTc35txH6D0Nq9lfGLQW7mnPw+FITio4nYzIFIrmrB0jYY3yfKfDff/0dwg== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: b34315a1-8c12-4b15-8aea-08d67c8ee330 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4186; x-ms-traffictypediagnostic: DB7PR05MB4186: x-microsoft-antispam-prvs: x-forefront-prvs: 0920602B08 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(366004)(346002)(396003)(376002)(199004)(189003)(6436002)(4326008)(53936002)(81166006)(68736007)(229853002)(6116002)(105586002)(6916009)(2906002)(8936002)(39060400002)(11346002)(9686003)(486006)(81156014)(3846002)(93886005)(86362001)(305945005)(74316002)(5660300001)(446003)(7736002)(6246003)(476003)(55016002)(6506007)(478600001)(7696005)(25786009)(71190400001)(54906003)(26005)(186003)(33656002)(102836004)(106356001)(316002)(76176011)(14454004)(256004)(66066001)(71200400001)(97736004)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4186; H:DB7PR05MB4426.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: s/gTNcIpA8xQm9VuxGtch8T0PYTsEL0a8ijV/Oq0KNMsbEGxkkBg/rTxASOWmJIiGcpWZx+DPgFdjj7HOCbqHA+/TOernTd5HCdJkAJrH/waOLUUyoobt4+FHU4OxaBMYfZ02IH6iD6KyjjRmpjF2RT7CIyFNfIpuYt8D/y6eP+dFMSUKWf/6DjPMbfZfw4goVlScHP+xSBVdfWYroa6VOnb08Lx100vT2XxpOrsn9biZ2CMU14wUUtSRdvdpw/qREcrMpepdYUxcQLZIjR/fPBQhiC8/BMPMYuKWsnSfHS040CCHZ5l0gsCxEapqZGIp9mDIJHo7arXjTy1o2OfI+UZJaRt2o8/O/uGMYTeBL7vXjthrmOLNX0zftMGLM4O7kKX8aZYIOBPvQUUfVRmeQuGsA8jD4s2b6wpSmjLBpw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: b34315a1-8c12-4b15-8aea-08d67c8ee330 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jan 2019 15:17:25.6907 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4186 Subject: Re: [dpdk-dev] [PATCH v8 2/2] examples/vdpa: introduce a new sample for vDPA X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2019 15:17:28 -0000 Thursday, January 17, 2019 5:13 PM, Ye Xiaolong: > Subject: Re: [dpdk-dev] [PATCH v8 2/2] examples/vdpa: introduce a new > sample for vDPA >=20 > Hi, >=20 > 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=3Dchar0,path=3D > \ > >> + -netdev type=3Dvhost-user,id=3Dvdpa,chardev=3Dchar0 \ > >> + -device > >> + virtio-net-pci,netdev=3Dvdpa,mac=3D00:aa:bb:cc:dd:ee,page-per-vq=3Do= n \ > > > > > >It doesn't seems like qemu has the id=3Dvdpa and netdev=3Dvdpa 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? > > >=20 > 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 lik= e >=20 > -netdev type=3Dvhost-user,id=3Dmynet,chardev=3Dchar0 \ -device virtio-net= - > pci,netdev=3Dmynet,... >=20 > 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. I mis-interpreted the option fields. >=20 > Thanks, > Xiaolong