From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 35F3A5A24 for ; Mon, 4 Jan 2016 05:13:05 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 03 Jan 2016 20:13:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,519,1444719600"; d="scan'208";a="883171044" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.66.49]) by orsmga002.jf.intel.com with ESMTP; 03 Jan 2016 20:13:03 -0800 Date: Mon, 4 Jan 2016 12:16:30 +0800 From: Yuanhan Liu To: "Xu, Qian Q" Message-ID: <20160104041630.GE26062@yliu-dev.sh.intel.com> References: <1449719650-3482-1-git-send-email-yuanhan.liu@linux.intel.com> <82F45D86ADE5454A95A89742C8D1410E031A5620@shsmsx102.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <82F45D86ADE5454A95A89742C8D1410E031A5620@shsmsx102.ccr.corp.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH 0/6 for 2.3] initial virtio 1.0 enabling 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: Mon, 04 Jan 2016 04:13:06 -0000 On Mon, Jan 04, 2016 at 03:55:14AM +0000, Xu, Qian Q wrote: > Does dpdk vhost-switch sample support virtio1.0? I tried it but seems not working. It has nothing to do with vhost-switch sample. It worked from my test; you may come to find me offline to see what might be wrong on your side. --yliu > > Thanks > Qian > > > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Tan, Jianfeng > Sent: Tuesday, December 29, 2015 7:19 PM > To: Yuanhan Liu; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 0/6 for 2.3] initial virtio 1.0 enabling > > > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yuanhan Liu > > Sent: Thursday, December 10, 2015 11:54 AM > > To: dev@dpdk.org > > Subject: [dpdk-dev] [PATCH 0/6 for 2.3] initial virtio 1.0 enabling > > > > Hi, > > > > Here is an initial virtio 1.0 pmd driver enabling. > > > > Almost all difference comes from virtio 1.0 are the PCI layout change: > > the major configuration structures are stored at bar space, and their > > location is stored at corresponding pci cap structure. Reading/parsing > > them is one of the major work of patch 6. > > > > To make handling virtio v1.0 and v0.95 co-exist well, this patch set > > introduces a virtio_pci_ops structure, to add another layer so that we > > could keep those vtpci_foo_bar "APIs". With that, we could do the > > minimum change to add virtio 1.0 support. > > > Please point out from which version, qemu starts to support virtio 1.0 net devices. > > Thanks, > Jianfeng > > > > > Note that the enabling is still in rough state, and it's likely I may > > miss something. So, comments are huge welcome! > > > > --yliu > > > > --- > > Yuanhan Liu (6): > > virtio: don't set vring address again at queue startup > > virtio: introduce struct virtio_pci_ops > > virtio: move left pci stuff to virtio_pci.c > > viritio: switch to 64 bit features > > virtio: set RTE_PCI_DRV_NEED_MAPPING flag > > virtio: add virtio v1.0 support > > > > drivers/net/virtio/virtio_ethdev.c | 297 +-------------- > > drivers/net/virtio/virtio_ethdev.h | 3 +- > > drivers/net/virtio/virtio_pci.c | 752 > > +++++++++++++++++++++++++++++++++++-- > > drivers/net/virtio/virtio_pci.h | 100 ++++- > > drivers/net/virtio/virtio_rxtx.c | 15 - > > drivers/net/virtio/virtqueue.h | 4 +- > > 6 files changed, 843 insertions(+), 328 deletions(-) > > > > -- > > 1.9.0