From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 888289AD8 for ; Tue, 2 Jun 2015 05:34:17 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 01 Jun 2015 20:34:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,537,1427785200"; d="scan'208";a="719082166" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by fmsmga001.fm.intel.com with ESMTP; 01 Jun 2015 20:34:16 -0700 Received: from kmsmsx154.gar.corp.intel.com (172.21.73.14) by PGSMSX104.gar.corp.intel.com (10.221.44.91) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 2 Jun 2015 11:33:17 +0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by KMSMSX154.gar.corp.intel.com (172.21.73.14) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 2 Jun 2015 11:33:17 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.120]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.180]) with mapi id 14.03.0224.002; Tue, 2 Jun 2015 11:33:15 +0800 From: "Xie, Huawei" To: "Ouyang, Changchun" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 3/6] lib_vhost: Set memory layout for multiple queues mode Thread-Index: AdCc5Nwd0ZMOMep+Qvm+jaJwNGqFmw== Date: Tue, 2 Jun 2015 03:33:15 +0000 Message-ID: References: <1432194581-15301-1-git-send-email-changchun.ouyang@intel.com> <1432194581-15301-4-git-send-email-changchun.ouyang@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 Subject: Re: [dpdk-dev] [PATCH 3/6] lib_vhost: Set memory layout for multiple queues mode 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, 02 Jun 2015 03:34:17 -0000 Is there any possibility that different queue has different memory=0A= translation?=0A= How about we use the memory region of the first queue discovered?=0A= =0A= =0A= On 5/21/2015 3:50 PM, Ouyang Changchun wrote:=0A= > QEMU sends separate commands orderly to set the memory layout for each qu= eue=0A= > in one virtio device, accordingly vhost need keep memory layout informati= on=0A= > for each queue of the virtio device.=0A= >=0A= > This also need adjust the interface a bit for function gpa_to_vva by=0A= > introducing the queue index to specify queue of device to look up its=0A= > virtual vhost address for the incoming guest physical address.=0A= >=0A= > Signed-off-by: Changchun Ouyang =0A= > ---=0A= > examples/vhost/main.c | 21 +++++-----=0A= > lib/librte_vhost/rte_virtio_net.h | 10 +++--=0A= > lib/librte_vhost/vhost_cuse/virtio-net-cdev.c | 57 ++++++++++++++-------= -----=0A= > lib/librte_vhost/vhost_rxtx.c | 21 +++++-----=0A= > lib/librte_vhost/vhost_user/virtio-net-user.c | 59 ++++++++++++++-------= ------=0A= > lib/librte_vhost/virtio-net.c | 26 +++++++-----=0A= > 6 files changed, 106 insertions(+), 88 deletions(-)=0A= >=0A= >=0A= =0A=