Skip to content

IOMMU Groups + VFIO

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 10 repliesIn review
  2. v113 patches 30 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13driver core: Add iommu_group tracking to struct deviceinclude/linux/device.h+2 -00 replies
2/13iommu: IOMMU GroupsDocumentation/ABI/testing/sysfs-kernel-iommu_groups drivers/iommu/amd_iommu.c drivers/iommu/intel-iommu.c +2 more+663 -1030 replies
3/13iommu: IOMMU groups for VT-d and AMD-Vidrivers/iommu/amd_iommu.c drivers/iommu/intel-iommu.c+73 -12 replies
4/13pci: Add PCI DMA source ID quirkdrivers/pci/quirks.c include/linux/pci.h+45 -00 replies
5/13pci: Add ACS validation utilitydrivers/pci/pci.c drivers/pci/quirks.c include/linux/pci.h+114 -12 replies
6/13iommu: Make use of DMA quirking and ACS enabled check for groupsdrivers/iommu/amd_iommu.c drivers/iommu/intel-iommu.c+36 -00 replies
7/13vfio: VFIO coreDocumentation/ioctl/ioctl-number.txt MAINTAINERS drivers/Kconfig +5 more+1793 -00 replies
8/13vfio: Add documentationDocumentation/vfio.txt+315 -00 replies
9/13vfio: x86 IOMMU implementationDocumentation/ioctl/ioctl-number.txt drivers/vfio/Kconfig drivers/vfio/Makefile +3 more+811 -13 replies
10/13pci: export pci_user functions for use by other driversdrivers/pci/access.c drivers/pci/pci.h include/linux/pci.h+12 -90 replies
11/13pci: Create common pcibios_err_to_errnodrivers/xen/xen-pciback/conf_space.c include/linux/pci.h+29 -30 replies
12/13pci: Misc pci_reg additionsinclude/linux/pci_regs.h+100 -122 replies
13/13vfio: Add PCI device driverdrivers/vfio/Kconfig drivers/vfio/pci/Kconfig drivers/vfio/pci/Makefile +6 more+3203 -00 replies

Reviews trailers per patch

3 of 13 patches have a Reviewed-by or Acked-by.

PatchGreg Kroah-HartmanBjorn HelgaasKonrad Rzeszutek Wilk
1/13A-b
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13A-b
11/13A-b
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/13] IOMMU Groups + VFIO

Version 2 incorporating acks and feedback from v1. The PCI DMA quirk and ACS check are reworked, sysfs iommu groups ABI Documentation added as well as numerous other fixes, including patches from Alexey Kardashevskiy towards supporting POWER usage of VFIO and IOMMU groups.

This series can be found here on top of 3.4:

git://github.com/awilliam/linux-vfio.git iommu-group-vfio-20120521

The Qemu tree has also been updated to Qemu 1.1 and can be found here:

git://github.com/awilliam/qemu-vfio.git iommu-group-vfio

I'd really like to make a push to get this in for 3.5, so let's talk about how to do that across iommu, pci, and new driver. Joerg, are you sufficiently happy with the IOMMU group concept and code? We'll also need David Woodhouse buyin on the intel-iommu changes in patches 3 & 6. Who needs to approve VFIO as a new driver, GregKH? Bjorn, I'd be happy to send the PCI changes as a series for you, but I wonder if it makes sense to collect acks for them if you approve and bundle them in with the associated code that needs them so you're not left with unused code. Let me know which you prefer. If there are better ways to do it, please let me know. Thanks,

Alex

---

Alex Williamson (13):
vfio: Add PCI device driver
pci: Misc pci_reg additions
pci: Create common pcibios_err_to_errno
pci: export pci_user functions for use by other drivers
vfio: x86 IOMMU implementation
vfio: Add documentation
vfio: VFIO core
iommu: Make use of DMA quirking and ACS enabled check for groups
pci: Add ACS validation utility
pci: Add PCI DMA source ID quirk
iommu: IOMMU groups for VT-d and AMD-Vi
iommu: IOMMU Groups
driver core: Add iommu_group tracking to struct device

 .../ABI/testing/sysfs-kernel-iommu_groups          |   14 
 Documentation/ioctl/ioctl-number.txt               |    1 
 Documentation/vfio.txt                             |  315 ++++
 MAINTAINERS                                        |    8 
 drivers/Kconfig                                    |    2 
 drivers/Makefile                                   |    1 
 drivers/iommu/amd_iommu.c                          |   67 +
 drivers/iommu/intel-iommu.c                        |   87 +
 drivers/iommu/iommu.c                              |  578 +++++++-
 drivers/pci/access.c                               |    6 
 drivers/pci/pci.c                                  |   76 +
 drivers/pci/pci.h                                  |    7 
 drivers/pci/quirks.c                               |   69 +
 drivers/vfio/Kconfig                               |   16 
 drivers/vfio/Makefile                              |    3 
 drivers/vfio/pci/Kconfig                           |    8 
 drivers/vfio/pci/Makefile                          |    4 
 drivers/vfio/pci/vfio_pci.c                        |  557 +++++++
 drivers/vfio/pci/vfio_pci_config.c                 | 1522 ++++++++++++++++++++
 drivers/vfio/pci/vfio_pci_intrs.c                  |  724 ++++++++++
 drivers/vfio/pci/vfio_pci_private.h                |   91 +
 drivers/vfio/pci/vfio_pci_rdwr.c                   |  269 ++++
 drivers/vfio/vfio.c                                | 1413 +++++++++++++++++++
 drivers/vfio/vfio_iommu_x86.c                      |  743 ++++++++++
 drivers/xen/xen-pciback/conf_space.c               |    6 
 include/linux/device.h                             |    2 
 include/linux/iommu.h                              |  104 +
 include/linux/pci.h                                |   49 +
 include/linux/pci_regs.h                           |  112 +
 include/linux/vfio.h                               |  444 ++++++
 30 files changed, 7182 insertions(+), 116 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-kernel-iommu_groups
 create mode 100644 Documentation/vfio.txt
 create mode 100644 drivers/vfio/Kconfig
 create mode 100644 drivers/vfio/Makefile
 create mode 100644 drivers/vfio/pci/Kconfig
 create mode 100644 drivers/vfio/pci/Makefile
 create mode 100644 drivers/vfio/pci/vfio_pci.c
 create mode 100644 drivers/vfio/pci/vfio_pci_config.c
 create mode 100644 drivers/vfio/pci/vfio_pci_intrs.c
 create mode 100644 drivers/vfio/pci/vfio_pci_private.h
 create mode 100644 drivers/vfio/pci/vfio_pci_rdwr.c
 create mode 100644 drivers/vfio/vfio.c
 create mode 100644 drivers/vfio/vfio_iommu_x86.c
 create mode 100644 include/linux/vfio.h