Skip to content

VFIO core framework

Alex Williamson kvm linux-iommu linux-pci lkml qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vfio: Introduce documentation for VFIO driverDocumentation/vfio.txt+359 -00 replies
2/5vfio: VFIO core headerDocumentation/ioctl/ioctl-number.txt include/linux/vfio.h+396 -00 replies
3/5vfio: VFIO core group interfacedrivers/vfio/vfio_main.c drivers/vfio/vfio_private.h+1284 -00 replies
4/5vfio: VFIO core IOMMU mapping supportdrivers/vfio/vfio_iommu.c+611 -00 replies
5/5vfio: VFIO core Kconfig and MakefileMAINTAINERS drivers/Kconfig drivers/Makefile +2 more+22 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/5] VFIO core framework

This series includes the core framework for the VFIO driver. VFIO is a userspace driver interface meant to replace both the KVM device assignment code as well as interfaces like UIO. Please see patch 1/5 for a complete description of VFIO, what it can do, and how it's designed.

This series can also be found here:

git://github.com/awilliam/linux-vfio.git vfio-next

This plus the PCI VFIO bus driver for exposing PCI devices to userspace can be found here:

git://github.com/awilliam/linux-vfio.git vfio-next-staging

or here for a linux-2.6.git based tree:

git://github.com/awilliam/linux-vfio.git vfio-linux-staging

A fully functional qemu driver for doing non-KVM based PCI device assignment can be found here:

git://github.com/awilliam/qemu-vfio.git vfio-ng

I'd like to propose VFIO for inclusion in Linux 3.4, starting with this core framework series. Once we have agreement on these, I'll split up and post the VFIO PCI bus driver for inclusion as well. I can also host the above vfio-next branch for inclusion in linux-next. Please review and comment. Thanks,

Alex

v2: Interrupt setup ioctl rework based on comments by Konrad.
The interrupt ioctls are no longer exclusively targeted at eventfds, allowing for more flexibility of other vfio bus drivers making use of alternate mechanisms. Also updated vfio_iommu_info to report common IOMMU geometry fields that we know we're going to need for Freescale PAMU. Additional ioctls and fields to be added via flags as they're implemented in the IOMMU API.

---

Alex Williamson (5):
vfio: VFIO core Kconfig and Makefile
vfio: VFIO core IOMMU mapping support
vfio: VFIO core group interface
vfio: VFIO core header
vfio: Introduce documentation for VFIO driver

 Documentation/ioctl/ioctl-number.txt |    1 
 Documentation/vfio.txt               |  359 ++++++++++
 MAINTAINERS                          |    8 
 drivers/Kconfig                      |    2 
 drivers/Makefile                     |    1 
 drivers/vfio/Kconfig                 |    8 
 drivers/vfio/Makefile                |    3 
 drivers/vfio/vfio_iommu.c            |  611 +++++++++++++++++
 drivers/vfio/vfio_main.c             | 1248 ++++++++++++++++++++++++++++++++++
 drivers/vfio/vfio_private.h          |   36 +
 include/linux/vfio.h                 |  395 +++++++++++
 11 files changed, 2672 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/vfio.txt
 create mode 100644 drivers/vfio/Kconfig
 create mode 100644 drivers/vfio/Makefile
 create mode 100644 drivers/vfio/vfio_iommu.c
 create mode 100644 drivers/vfio/vfio_main.c
 create mode 100644 drivers/vfio/vfio_private.h
 create mode 100644 include/linux/vfio.h