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 349458E8D for ; Thu, 21 Jan 2016 03:18:23 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 20 Jan 2016 18:18:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,323,1449561600"; d="scan'208";a="33318089" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 20 Jan 2016 18:18:22 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 20 Jan 2016 18:18:21 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 20 Jan 2016 18:18:21 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.215]) by shsmsx102.ccr.corp.intel.com ([169.254.2.172]) with mapi id 14.03.0248.002; Thu, 21 Jan 2016 10:18:20 +0800 From: "Xie, Huawei" To: "Tan, Jianfeng" , "dev@dpdk.org" Thread-Topic: [PATCH 3/4] virtio/vdev: add ways to interact with vhost Thread-Index: AdFT8f6cuuI4jYXXSIu/ldDcb70Zsg== Date: Thu, 21 Jan 2016 02:18:19 +0000 Message-ID: References: <1446748276-132087-1-git-send-email-jianfeng.tan@intel.com> <1452426182-86851-1-git-send-email-jianfeng.tan@intel.com> <1452426182-86851-4-git-send-email-jianfeng.tan@intel.com> 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 Cc: "nakajima.yoshihiro@lab.ntt.co.jp" , "mst@redhat.com" , "ann.zhuangyanying@huawei.com" Subject: Re: [dpdk-dev] [PATCH 3/4] virtio/vdev: add ways to interact with vhost 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: Thu, 21 Jan 2016 02:18:23 -0000 On 1/11/2016 2:43 AM, Tan, Jianfeng wrote:=0A= > + if (hw->type =3D=3D VHOST_KERNEL) {=0A= > + struct vhost_vring_file file;=0A= > +=0A= > + file.fd =3D hw->backfd;=0A= > + nvqs =3D data->nb_rx_queues + data->nb_tx_queues;=0A= > + for (file.index =3D 0; file.index < nvqs; ++file.index) {=0A= > + ret =3D vhost_kernel_ioctl(hw, VHOST_NET_SET_BACKEND, &file);=0A= > + if (ret < 0)=0A= > + rte_panic("VHOST_NET_SET_BACKEND failed, %s\n",=0A= > + strerror(errno));=0A= > + }=0A= > + }=0A= > +=0A= > + /* TODO: VHOST_SET_LOG_BASE */=0A= =0A= We needn't support VHOST_SET_LOG_BASE.=0A=