From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 735348F9B for ; Fri, 22 Jan 2016 09:14:54 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP; 22 Jan 2016 00:14:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,329,1449561600"; d="scan'208";a="895935599" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 22 Jan 2016 00:14:54 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 22 Jan 2016 00:14:52 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 22 Jan 2016 00:14:52 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.215]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.209]) with mapi id 14.03.0248.002; Fri, 22 Jan 2016 16:14:50 +0800 From: "Xie, Huawei" To: Tetsuya Mukawa , "dev@dpdk.org" , "yuanhan.liu@linux.intel.com" , "Tan, Jianfeng" Thread-Topic: [RFC PATCH 5/5] virtio: Extend virtio-net PMD to support container environment Thread-Index: AdFU7PZnAunQ5LVPT++h9TW0MGQ/9A== Date: Fri, 22 Jan 2016 08:14:49 +0000 Message-ID: References: <1453108389-21006-2-git-send-email-mukawa@igel.co.jp> <1453374478-30996-6-git-send-email-mukawa@igel.co.jp> 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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC PATCH 5/5] virtio: Extend virtio-net PMD to support container environment 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: Fri, 22 Jan 2016 08:14:54 -0000 On 1/21/2016 7:09 PM, Tetsuya Mukawa wrote:=0A= > virtio: Extend virtio-net PMD to support container environment=0A= >=0A= > The patch adds a new virtio-net PMD configuration that allows the PMD to= =0A= > work on host as if the PMD is in VM.=0A= > Here is new configuration for virtio-net PMD.=0A= > - CONFIG_RTE_LIBRTE_VIRTIO_HOST_MODE=0A= > To use this mode, EAL needs physically contiguous memory. To allocate=0A= > such memory, add "--shm" option to application command line.=0A= >=0A= > To prepare virtio-net device on host, the users need to invoke QEMU=0A= > process in special qtest mode. This mode is mainly used for testing QEMU= =0A= > devices from outer process. In this mode, no guest runs.=0A= > Here is QEMU command line.=0A= >=0A= > $ qemu-system-x86_64 \=0A= > -machine pc-i440fx-1.4,accel=3Dqtest \=0A= > -display none -qtest-log /dev/null \=0A= > -qtest unix:/tmp/socket,server \=0A= > -netdev type=3Dtap,script=3D/etc/qemu-ifup,id=3Dnet0,queues= =3D1\=0A= > -device virtio-net-pci,netdev=3Dnet0,mq=3Don \=0A= > -chardev socket,id=3Dchr1,path=3D/tmp/ivshmem,server \=0A= > -device ivshmem,size=3D1G,chardev=3Dchr1,vectors=3D1=0A= >=0A= > * QEMU process is needed per port.=0A= =0A= Does qtest supports hot plug virtio-net pci device, so that we could run=0A= one QEMU process in host, which provisions the virtio-net virtual=0A= devices for the container?=0A=