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 D334B5B03 for ; Tue, 27 Jan 2015 18:10:40 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 27 Jan 2015 09:10:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="445930393" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jan 2015 08:56:49 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by PGSMSX104.gar.corp.intel.com (10.221.44.91) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 28 Jan 2015 01:10:30 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.64]) by shsmsx102.ccr.corp.intel.com ([169.254.2.238]) with mapi id 14.03.0195.001; Wed, 28 Jan 2015 01:10:29 +0800 From: "Xie, Huawei" To: =?iso-8859-1?Q?Beno=EEt_Canet?= Thread-Topic: vhost user examples Thread-Index: AQHQOjsxB4ioFR3D60WLfVG0Tpk3A5zUKBqA//+CrQCAAIi5YA== Date: Tue, 27 Jan 2015 17:10:29 +0000 Message-ID: References: <20150127141036.GA21462@irqsave.net> <20150127165956.GC21462@irqsave.net> In-Reply-To: <20150127165956.GC21462@irqsave.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] vhost user examples 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: Tue, 27 Jan 2015 17:10:41 -0000 > -----Original Message----- > From: Beno=EEt Canet [mailto:benoit.canet@irqsave.net] > Sent: Wednesday, January 28, 2015 1:00 AM > To: Xie, Huawei > Cc: Beno=EEt Canet; dev@dpdk.org > Subject: Re: vhost user examples >=20 > The Tuesday 27 Jan 2015 =E0 16:33:19 (+0000), Xie, Huawei wrote : > > > > > -----Original Message----- > > > From: Beno=EEt Canet [mailto:benoit.canet@irqsave.net] > > > Sent: Tuesday, January 27, 2015 10:11 PM > > > To: Xie, Huawei; dev@dpdk.org > > > Subject: vhost user examples > > > > > > > > > Hi Xie, > > > > > > I would be interested in alpha testing the vhost user patchset. > > > > > > Is there an up to date example of how to use it ? > > > > > > > vHost has a parameter called base_name. Temporarily you could specify -= - > base-name as > > the unix domain socket path, and set it in the qemu command line as soc= ket > path. > > recommended qemu command line for memory and vhost configuration: > > -m $MEM -object memory-backend-file,id=3Dmem,size=3D${MEM}M,mem- > path=3D/mnt/huge,share=3Don -numa node,memdev=3Dmem -mem-prealloc > > -chardev socket,id=3Dchar0,path=3D$sock_path -netdev type=3Dvhost- > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > > -device virtio-net-pci,mac=3D52:54:00:12:34:11,netdev=3Dmynet1 >=20 > Thanks, >=20 > Is the upstream vhost example in master already patched for this ? > Or does it still required some patches ? Yes, vhost example already supports base_name parameter. Previously it is used for name of the vhost character device file. You could use it as socket path name. >=20 > Best regards >=20 > Beno=EEt >=20 > > > > > Best regards > > > > > > Beno=EEt