From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga01-in.huawei.com (unknown [119.145.14.64]) by dpdk.org (Postfix) with ESMTP id 8A7682E81 for ; Sat, 13 Sep 2014 06:52:43 +0200 (CEST) Received: from 172.24.2.119 (EHLO SZXEML414-HUB.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CBP59837; Sat, 13 Sep 2014 12:57:54 +0800 (CST) Received: from [127.0.0.1] (10.177.19.115) by SZXEML414-HUB.china.huawei.com (10.82.67.153) with Microsoft SMTP Server id 14.3.158.1; Sat, 13 Sep 2014 12:57:50 +0800 Message-ID: <5413CECC.7050609@huawei.com> Date: Sat, 13 Sep 2014 12:57:48 +0800 From: Linhaifeng User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Huawei Xie , References: <1410519304-14521-1-git-send-email-huawei.xie@intel.com> <1410519304-14521-6-git-send-email-huawei.xie@intel.com> In-Reply-To: <1410519304-14521-6-git-send-email-huawei.xie@intel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.19.115] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v4 5/5] lib/librte_vhost: add vhost lib support in makefile 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: Sat, 13 Sep 2014 04:52:45 -0000 Will dpdk develop a vhost-user lib for the vhost-user backend of qemu? On 2014/9/12 18:55, Huawei Xie wrote: > The build of vhost lib requires fuse development package. It is turned off by > default so as not to break DPDK build. > > Signed-off-by: Huawei Xie > Acked-by: Konstantin Ananyev > Acked-by: Tommy Long > --- > config/common_linuxapp | 7 +++++++ > lib/Makefile | 1 + > mk/rte.app.mk | 5 +++++ > 3 files changed, 13 insertions(+) > > diff --git a/config/common_linuxapp b/config/common_linuxapp > index 9047975..c7c1c83 100644 > --- a/config/common_linuxapp > +++ b/config/common_linuxapp > @@ -390,6 +390,13 @@ CONFIG_RTE_KNI_VHOST_DEBUG_RX=n > CONFIG_RTE_KNI_VHOST_DEBUG_TX=n > > # > +# Compile vhost library > +# fuse, fuse-devel, kernel-modules-extra packages are needed > +# > +CONFIG_RTE_LIBRTE_VHOST=n > +CONFIG_RTE_LIBRTE_VHOST_DEBUG=n > + > +# > #Compile Xen domain0 support > # > CONFIG_RTE_LIBRTE_XEN_DOM0=n > diff --git a/lib/Makefile b/lib/Makefile > index 10c5bb3..007c174 100644 > --- a/lib/Makefile > +++ b/lib/Makefile > @@ -60,6 +60,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_METER) += librte_meter > DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += librte_sched > DIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs > DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += librte_distributor > +DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += librte_vhost > DIRS-$(CONFIG_RTE_LIBRTE_PORT) += librte_port > DIRS-$(CONFIG_RTE_LIBRTE_TABLE) += librte_table > DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += librte_pipeline > diff --git a/mk/rte.app.mk b/mk/rte.app.mk > index 34dff2a..285b65c 100644 > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -190,6 +190,11 @@ ifeq ($(CONFIG_RTE_LIBRTE_VIRTIO_PMD),y) > LDLIBS += -lrte_pmd_virtio_uio > endif > > +ifeq ($(CONFIG_RTE_LIBRTE_VHOST), y) > +LDLIBS += -lrte_vhost > +LDLIBS += -lfuse > +endif > + > ifeq ($(CONFIG_RTE_LIBRTE_I40E_PMD),y) > LDLIBS += -lrte_pmd_i40e > endif >