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 5C107601D for ; Tue, 27 Jan 2015 17:33:25 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 27 Jan 2015 08:33:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,475,1418112000"; d="scan'208";a="668444624" Received: from pgsmsx101.gar.corp.intel.com ([10.221.44.78]) by fmsmga002.fm.intel.com with ESMTP; 27 Jan 2015 08:33:21 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by PGSMSX101.gar.corp.intel.com (10.221.44.78) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 28 Jan 2015 00:33:20 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.64]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.129]) with mapi id 14.03.0195.001; Wed, 28 Jan 2015 00:33:19 +0800 From: "Xie, Huawei" To: =?iso-8859-1?Q?Beno=EEt_Canet?= , "dev@dpdk.org" Thread-Topic: vhost user examples Thread-Index: AQHQOjsxB4ioFR3D60WLfVG0Tpk3A5zUKBqA Date: Tue, 27 Jan 2015 16:33:19 +0000 Message-ID: References: <20150127141036.GA21462@irqsave.net> In-Reply-To: <20150127141036.GA21462@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 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 16:33:25 -0000 > -----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 >=20 >=20 > Hi Xie, >=20 > I would be interested in alpha testing the vhost user patchset. >=20 > Is there an up to date example of how to use it ? >=20 vHost has a parameter called base_name. Temporarily you could specify --bas= e-name as the unix domain socket path, and set it in the qemu command line as socket = 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 > Best regards >=20 > Beno=EEt