From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tetsuya Mukawa Subject: Re: [RFC PATCH 0/5] virtio: Add a new layer to abstract pci access method Date: Thu, 21 Jan 2016 20:10:42 +0900 Message-ID: <56A0BCB2.6010000@igel.co.jp> References: <1453108389-21006-2-git-send-email-mukawa@igel.co.jp> <1453374478-30996-1-git-send-email-mukawa@igel.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit To: dev@dpdk.org, yuanhan.liu@linux.intel.com, jianfeng.tan@intel.com Return-path: Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by dpdk.org (Postfix) with ESMTP id 114B98E7A for ; Thu, 21 Jan 2016 12:10:45 +0100 (CET) Received: by mail-pa0-f48.google.com with SMTP id ho8so21684198pac.2 for ; Thu, 21 Jan 2016 03:10:45 -0800 (PST) In-Reply-To: <1453374478-30996-1-git-send-email-mukawa@igel.co.jp> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2016/01/21 20:07, Tetsuya Mukawa wrote: > This patch series are not for upstreaming. > > It describe how to use a new access method abstraction of "virtio-pci.c". > Because of this, some patches are not for upstreaming. > > For example, below changes will be shared with Jianfeng's patches. > So these changes are just temporary. > - "--shm" option to allocate EAL memory. > - Some changes to access to EAL memory by virtual address. > > Anyway, some changes are not for upstreaming, but virtual virtio-net PMD > should work with QEMU as described in commit log. > > Tetsuya Mukawa (5): > virtio: Change the parameter order of io_write8/16/32() > virtio: move rte_eal_pci_unmap_device() to virtio_pci.c > virtio: Add a new layer to abstract pci access method > EAL: Add new EAL "--shm" option. > virtio: Extend virtio-net PMD to support container environment > > config/common_linuxapp | 1 + > drivers/net/virtio/Makefile | 4 + > drivers/net/virtio/qtest.c | 1237 ++++++++++++++++++++++++++++ > drivers/net/virtio/virtio_ethdev.c | 454 ++++++++-- > drivers/net/virtio/virtio_ethdev.h | 12 + > drivers/net/virtio/virtio_pci.c | 732 ++++++++++++---- > drivers/net/virtio/virtio_pci.h | 39 +- > drivers/net/virtio/virtio_rxtx.c | 3 +- > drivers/net/virtio/virtqueue.h | 9 +- > lib/librte_eal/common/eal_common_options.c | 5 + > lib/librte_eal/common/eal_internal_cfg.h | 1 + > lib/librte_eal/common/eal_options.h | 2 + > lib/librte_eal/common/include/rte_memory.h | 5 + > lib/librte_eal/linuxapp/eal/eal_memory.c | 76 ++ > 14 files changed, 2337 insertions(+), 243 deletions(-) > create mode 100644 drivers/net/virtio/qtest.c > Hi Yuanhan and Jianfeng, Here is example how to use this new abstraction. Please check first 3 patches to know how to implement the abstraction. Also please see changes for "virtio_pci.c" involved in last patch. This is the example. Thanks, Tetsuya