From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by dpdk.org (Postfix) with ESMTP id 575708DB3 for ; Thu, 21 Jan 2016 12:08:10 +0100 (CET) Received: by mail-pf0-f180.google.com with SMTP id e65so22054582pfe.0 for ; Thu, 21 Jan 2016 03:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4OfTS3UG9ovMVsYgu+hwhTi2J3V0SxW82+NA2tDVdKo=; b=VH3om6TiksuwwGtSMIzUlfVc82T4GvltsmZa+uPSAUdMGK2ibVUlKID5bebooWUrgL h6rNuaiptQ3sVhg8hfhpKGUH7ZkCfU57XjmOWtTzARBtnd6LyI0/zTY/lCwN4dp1AegV 30UW23+deGgBPjwZz8TnG945itmxUUN6crJSzvOvpNY/oETT2fnnm39ELM8QjoWlfse3 YP3uQ7B8TjiLt/ZBP85Xlveye1ckcHDYC4SqOmmNmM165vuPgZDaZ9sS9b8FJsKRMp6D Va7RXE3Pab1naqk8ZNKhsuafFNVSDiSI/n72CGG6ZAf62e5xQhK1jIrsj4eE8O7AJ7wq EjhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4OfTS3UG9ovMVsYgu+hwhTi2J3V0SxW82+NA2tDVdKo=; b=eztJDeqWRuuR1YsEm+XCEZJIIKIIPeg97S6omGVkdkkY0XZhGOS7sySeLUqfnPqk7W 4tgfTG/GS645sLBzmgzfc2BJY/MJHCOoJhN0nZGQ93GVPBwi9TW14K+/YS1U7V2581p8 nKFz3Jqia6PLN7m7v/v361JI33k2oXOaWKWv/nXl41v+AHNm8RNnP/0caqBR9X+oWnF5 6ga4V7HPZqBWQW06uH+npMS8QM3XU4uiYSQVyUt5ngrDrQIB+avDIt3DIAOGYtaDS+CI 4ODaQiYXEV6qxvIrCif66OW1Q0O7yIxPsVXK1u0Pk8N/T0+TSkA6y9KueVgEzU2NGNla PEsQ== X-Gm-Message-State: ALoCoQkqm1UlxLZUi8mkftvaP59tEH7J9sYDkDLz33/X/LbSHl2GUo+S+9tWokyJZZNOM6kYFnuXMjj98Gex60NEHKjT0q2jxg== X-Received: by 10.98.32.25 with SMTP id g25mr60009899pfg.20.1453374489714; Thu, 21 Jan 2016 03:08:09 -0800 (PST) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id wa17sm1792640pac.38.2016.01.21.03.08.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jan 2016 03:08:08 -0800 (PST) From: Tetsuya Mukawa To: dev@dpdk.org, yuanhan.liu@linux.intel.com, jianfeng.tan@intel.com Date: Thu, 21 Jan 2016 20:07:53 +0900 Message-Id: <1453374478-30996-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1453108389-21006-2-git-send-email-mukawa@igel.co.jp> References: <1453108389-21006-2-git-send-email-mukawa@igel.co.jp> Subject: [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:08:10 -0000 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 -- 2.1.4