From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=U4O84k09aUF4XThEqQLvGoxQvvOqQM0FvJYbZn+t3Eg=; b=V8XEzqQGunPAdmj9T1FEK425CCFw4+kk8wAw3udZulKqa51XOtfYsrB6tK/iQz0Ea6 zpJfWfobufVY4V6enXphp20lyIYzgxsJxH/0n5yci2NDSjmixNQabCiEnyF1g63IQAUi l4fMI7D+jO4xJVshT+93u6BvdnMaPVe9/I4uVaHMit3wf7ahvbgsctLhkh4/QGzL7mMm Xdmc7AcXXSo72d9T/msflqvb//HugMJ4XezEhTDvu2dml4i5tz33MlmIgndFpemDl92j j2mz5HXloHhLI1QtAm3OGz5lc/rmjQpFeCV1S/I8xkGC1AD9nueuACumWviZXQtTgn2b IL1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=U4O84k09aUF4XThEqQLvGoxQvvOqQM0FvJYbZn+t3Eg=; b=ad5lO7faz80ov6k70hy0v5sFwBRYXxfmYsbw/+2wk4mWm8eNGvUxVkUaPX1usvgq8e wrwBcwLJpDvXUz0K6/odnvWNuZzZJonp4KWjl/uneLOBnrf6447MSzi+wY7/T9Xmc2bb PMonPbioy3m/2uSynPujUT4TtSQv5cqIGH4mS4D6Fg44r3a1avW3buMZ56xRrJHuiHp9 RU49PUZaBfKKcaD+mtAe8eRbb8fRbqZJna6Ynn6zycZQj0D1vJEdxbKUlUEa6ieZzJlF 0jSsSdL/FVtl7dHaMzxiAsF22WCU2yWee6yK/rpBiLnHTpBP0A/YKOf+vS8WqqDnAA+g HWog== X-Gm-Message-State: AG10YOQMKGQ5oJGm+1XiaCv/UskNZzu7I7icq2IDVPPg0Am7BhWpGWDOammK43WIpIoK2A== X-Received: by 10.66.119.71 with SMTP id ks7mr46212390pab.71.1453374644455; Thu, 21 Jan 2016 03:10:44 -0800 (PST) Received: from [10.16.129.101] (napt.igel.co.jp. [219.106.231.132]) by smtp.googlemail.com with ESMTPSA id v2sm1805161pfi.93.2016.01.21.03.10.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jan 2016 03:10:43 -0800 (PST) To: dev@dpdk.org, yuanhan.liu@linux.intel.com, jianfeng.tan@intel.com References: <1453108389-21006-2-git-send-email-mukawa@igel.co.jp> <1453374478-30996-1-git-send-email-mukawa@igel.co.jp> From: Tetsuya Mukawa Message-ID: <56A0BCB2.6010000@igel.co.jp> Date: Thu, 21 Jan 2016 20:10:42 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1453374478-30996-1-git-send-email-mukawa@igel.co.jp> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC PATCH 0/5] virtio: Add a new layer to abstract pci access method 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 11:10:45 -0000 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