Skip to content

RFC support vfio platform PMD

Tomasz Duszynski dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7lib: add helper to read strings from sysfs filesapp/test/test_eal_fs.c lib/eal/common/eal_filesystem.h lib/eal/unix/eal_filesystem.c +1 more+123 -182 replies
2/7raw/vfio_platform: add driver skeletondoc/guides/rawdevs/index.rst doc/guides/rawdevs/vfio_platform.rst drivers/raw/meson.build +4 more+186 -00 replies
3/7raw/vfio_platform: add platform probe and removedrivers/raw/vfio_platform/vfio_platform.c drivers/raw/vfio_platform/vfio_platform.h+91 -00 replies
4/7raw/vfio_platform: support rawdev closedrivers/raw/vfio_platform/vfio_platform.c+49 -00 replies
5/7raw/vfio_platform: support rawdev configuredrivers/raw/vfio_platform/rte_pmd_vfio_platform.h drivers/raw/vfio_platform/vfio_platform.c+153 -00 replies
6/7raw/vfio_platform: support rawdev device infodrivers/raw/vfio_platform/rte_pmd_vfio_platform.h drivers/raw/vfio_platform/vfio_platform.c+79 -00 replies
7/7raw/vfio_platform: support DMA map/unmapdrivers/raw/vfio_platform/rte_pmd_vfio_platform.h drivers/raw/vfio_platform/version.map drivers/raw/vfio_platform/vfio_platform.c+109 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/7] support vfio platform PMD

This series aims to add support for managing vfio platform devices from userspace application conveniently i.e without going through the configuration required by vfio and opencoding everything. Instead convenience helpers are provided.

vfio platform devices, from the kernel standpoint, are ones that do not have built-in discovery capabilities and are behind an IOMMU.

This PMD is backed by both vfio-platform and vfio kernel drivers and ideally should give access to all vfio capabilities. As of now, access to memory maps and DMA are supported.

PMD requires platform bus support [1].

[1] https://lore.kernel.org/dpdk-dev/[email protected]/

Tomasz Duszynski (7):
lib: add helper to read strings from sysfs files raw/vfio_platform: add driver skeleton raw/vfio_platform: add platform probe and remove raw/vfio_platform: support rawdev close raw/vfio_platform: support rawdev configure raw/vfio_platform: support rawdev device info raw/vfio_platform: support DMA map/unmap

 app/test/test_eal_fs.c                        | 108 ++++-
 doc/guides/rawdevs/index.rst                  |   1 +
 doc/guides/rawdevs/vfio_platform.rst          |  24 +
 drivers/raw/meson.build                       |   1 +
 drivers/raw/vfio_platform/meson.build         |  16 +
 .../raw/vfio_platform/rte_pmd_vfio_platform.h | 129 +++++
 drivers/raw/vfio_platform/version.map         |  12 +
 drivers/raw/vfio_platform/vfio_platform.c     | 449 ++++++++++++++++++
 drivers/raw/vfio_platform/vfio_platform.h     |  35 ++
 lib/eal/common/eal_filesystem.h               |   6 +
 lib/eal/unix/eal_filesystem.c                 |  24 +-
 lib/eal/version.map                           |   3 +
 12 files changed, 790 insertions(+), 18 deletions(-)
 create mode 100644 doc/guides/rawdevs/vfio_platform.rst
 create mode 100644 drivers/raw/vfio_platform/meson.build
 create mode 100644 drivers/raw/vfio_platform/rte_pmd_vfio_platform.h
 create mode 100644 drivers/raw/vfio_platform/version.map
 create mode 100644 drivers/raw/vfio_platform/vfio_platform.c
 create mode 100644 drivers/raw/vfio_platform/vfio_platform.h

--
2.25.1