Cover Detail
Show a cover letter.
GET /api/covers/52142/?format=api
http://patches.dpdk.org/api/covers/52142/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/cover/20190403071844.21126-1-tiwei.bie@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20190403071844.21126-1-tiwei.bie@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190403071844.21126-1-tiwei.bie@intel.com", "date": "2019-04-03T07:18:41", "name": "[RFC,0/3] Add mdev (Mediated device) support in DPDK", "submitter": { "id": 617, "url": "http://patches.dpdk.org/api/people/617/?format=api", "name": "Tiwei Bie", "email": "tiwei.bie@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/cover/20190403071844.21126-1-tiwei.bie@intel.com/mbox/", "series": [ { "id": 4075, "url": "http://patches.dpdk.org/api/series/4075/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4075", "date": "2019-04-03T07:18:41", "name": "Add mdev (Mediated device) support in DPDK", "version": 1, "mbox": "http://patches.dpdk.org/series/4075/mbox/" } ], "comments": "http://patches.dpdk.org/api/covers/52142/comments/", "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0D21A5689;\n\tWed, 3 Apr 2019 09:19:27 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 943294F9A\n\tfor <dev@dpdk.org>; Wed, 3 Apr 2019 09:19:24 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Apr 2019 00:19:23 -0700", "from dpdk-tbie.sh.intel.com ([10.67.104.173])\n\tby orsmga007.jf.intel.com with ESMTP; 03 Apr 2019 00:19:22 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.60,303,1549958400\"; d=\"scan'208\";a=\"128206231\"", "From": "Tiwei Bie <tiwei.bie@intel.com>", "To": "dev@dpdk.org", "Cc": "cunming.liang@intel.com, bruce.richardson@intel.com,\n\talejandro.lucero@netronome.com", "Date": "Wed, 3 Apr 2019 15:18:41 +0800", "Message-Id": "<20190403071844.21126-1-tiwei.bie@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dpdk-dev] [RFC 0/3] Add mdev (Mediated device) support in DPDK", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Hi everyone,\n\nThis is a draft implementation of the mdev (Mediated device [1])\nbus support in DPDK. Mdev is a way to virtualize devices in Linux\nkernel. Based on the device-api (mdev_type/device_api), there could\nbe different types of mdev devices (e.g. vfio-pci). In this RFC,\none mdev bus is introduced to scan the mdev devices in the system\nand do the probe based on the device-api.\n\nTake the mdev devices whose device-api is \"vfio-pci\" as an example,\nin this RFC, these devices will be probed by a mdev driver provided\nby PCI bus, which will plug them to the PCI bus. And they will be\nprobed with the drivers registered on the PCI bus based on VendorID/\nDeviceID/... then.\n\n +----------+\n | mdev bus |\n +----+-----+\n |\n +----------------+----+------+------+\n | | | |\n mdev_vfio_pci ......\n(device-api: vfio-pci)\n\nThere are also other ways to add mdev device support in DPDK (e.g.\nlet PCI bus scan /sys/bus/mdev/devices directly). Comments would be\nappreciated!\n\n[1] https://github.com/torvalds/linux/blob/master/Documentation/vfio-mediated-device.txt\n\nThanks,\nTiwei\n\nTiwei Bie (3):\n eal: add a helper for reading string from sysfs\n bus/mdev: add mdev bus support\n bus/pci: add mdev support\n\n config/common_base | 5 +\n config/common_linux | 1 +\n drivers/bus/Makefile | 1 +\n drivers/bus/mdev/Makefile | 41 +++\n drivers/bus/mdev/linux/Makefile | 6 +\n drivers/bus/mdev/linux/mdev.c | 117 ++++++++\n drivers/bus/mdev/mdev.c | 310 ++++++++++++++++++++++\n drivers/bus/mdev/meson.build | 15 ++\n drivers/bus/mdev/private.h | 90 +++++++\n drivers/bus/mdev/rte_bus_mdev.h | 141 ++++++++++\n drivers/bus/mdev/rte_bus_mdev_version.map | 12 +\n drivers/bus/meson.build | 2 +-\n drivers/bus/pci/Makefile | 3 +\n drivers/bus/pci/linux/Makefile | 4 +\n drivers/bus/pci/linux/pci_vfio.c | 35 ++-\n drivers/bus/pci/linux/pci_vfio_mdev.c | 305 +++++++++++++++++++++\n drivers/bus/pci/meson.build | 4 +-\n drivers/bus/pci/pci_common.c | 17 +-\n drivers/bus/pci/private.h | 9 +\n drivers/bus/pci/rte_bus_pci.h | 11 +-\n lib/librte_eal/common/eal_filesystem.h | 7 +\n lib/librte_eal/freebsd/eal/eal.c | 22 ++\n lib/librte_eal/linux/eal/eal.c | 22 ++\n lib/librte_eal/rte_eal_version.map | 1 +\n mk/rte.app.mk | 1 +\n 25 files changed, 1163 insertions(+), 19 deletions(-)\n create mode 100644 drivers/bus/mdev/Makefile\n create mode 100644 drivers/bus/mdev/linux/Makefile\n create mode 100644 drivers/bus/mdev/linux/mdev.c\n create mode 100644 drivers/bus/mdev/mdev.c\n create mode 100644 drivers/bus/mdev/meson.build\n create mode 100644 drivers/bus/mdev/private.h\n create mode 100644 drivers/bus/mdev/rte_bus_mdev.h\n create mode 100644 drivers/bus/mdev/rte_bus_mdev_version.map\n create mode 100644 drivers/bus/pci/linux/pci_vfio_mdev.c" }{ "id": 52142, "url": "