[GIT PULL] VFIO updates for v5.16-rc1

From: Alex Williamson
Date: Wed Nov 03 2021 - 16:03:02 EST


Hi Linus,

The following changes since commit 02d5e016800d082058b3d3b7c3ede136cdc6ddcb:

Merge tag 'sound-5.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound (2021-09-29 07:48:00 -0700)

are available in the Git repository at:

git://github.com/awilliam/linux-vfio.git tags/vfio-v5.16-rc1

for you to fetch changes up to 3bf1311f351ef289f2aee79b86bcece2039fa611:

vfio/ccw: Convert to use vfio_register_emulated_iommu_dev() (2021-10-28 11:06:31 -0600)

----------------------------------------------------------------
VFIO updates for v5.16-rc1

- Cleanup vfio iommu_group creation (Christoph Hellwig)

- Add individual device reset for vfio/fsl-mc (Diana Craciun)

- IGD OpRegion 2.0+ support (Colin Xu)

- Use modern cdev lifecycle for vfio_group (Jason Gunthorpe)

- Use new mdev API in vfio_ccw (Jason Gunthorpe)

----------------------------------------------------------------
Alex Williamson (3):
Merge branch 'v5.16/vfio/hch-cleanup-vfio-iommu_group-creation-v6' into v5.16/vfio/next
Merge branch 'v5.16/vfio/diana-fsl-reset-v2' into v5.16/vfio/next
Merge branch 'v5.16/vfio/colin_xu_igd_opregion_2.0_v8' into v5.16/vfio/next

Christoph Hellwig (14):
vfio: factor out a vfio_iommu_driver_allowed helper
vfio: remove the iommudata check in vfio_noiommu_attach_group
vfio: factor out a vfio_group_find_or_alloc helper
vfio: refactor noiommu group creation
vfio: remove the iommudata hack for noiommu groups
vfio: simplify iommu group allocation for mediated devices
vfio: remove unused method from vfio_iommu_driver_ops
vfio: move the vfio_iommu_driver_ops interface out of <linux/vfio.h>
vfio: remove the unused mdev iommu hook
vfio: clean up the check for mediated device in vfio_iommu_type1
vfio/spapr_tce: reject mediated devices
vfio/iommu_type1: initialize pgsize_bitmap in ->open
vfio/iommu_type1: remove the "external" domain
vfio/iommu_type1: remove IS_IOMMU_CAP_DOMAIN_IN_CONTAINER

Colin Xu (1):
vfio/pci: Add OpRegion 2.0+ Extended VBT support.

Diana Craciun (2):
bus/fsl-mc: Add generic implementation for open/reset/close commands
vfio/fsl-mc: Add per device reset support

Jason Gunthorpe (10):
vfio: Move vfio_iommu_group_get() to vfio_register_group_dev()
vfio: Delete vfio_get/put_group from vfio_iommu_group_notifier()
vfio: Do not open code the group list search in vfio_create_group()
vfio: Don't leak a group reference if the group already exists
vfio: Use a refcount_t instead of a kref in the vfio_group
vfio: Use cdev_device_add() instead of device_create()
vfio/ccw: Remove unneeded GFP_DMA
vfio/ccw: Use functions for alloc/free of the vfio_ccw_private
vfio/ccw: Pass vfio_ccw_private not mdev_device to various functions
vfio/ccw: Convert to use vfio_register_emulated_iommu_dev()

drivers/bus/fsl-mc/Makefile | 3 +-
drivers/bus/fsl-mc/fsl-mc-private.h | 39 +-
drivers/bus/fsl-mc/obj-api.c | 103 +++++
drivers/s390/cio/vfio_ccw_drv.c | 136 +++---
drivers/s390/cio/vfio_ccw_ops.c | 142 +++---
drivers/s390/cio/vfio_ccw_private.h | 5 +
drivers/s390/crypto/vfio_ap_ops.c | 2 +-
drivers/vfio/fsl-mc/vfio_fsl_mc.c | 62 +--
drivers/vfio/mdev/mdev_driver.c | 45 +-
drivers/vfio/mdev/vfio_mdev.c | 2 +-
drivers/vfio/pci/vfio_pci_core.c | 13 +-
drivers/vfio/pci/vfio_pci_igd.c | 234 +++++++---
drivers/vfio/platform/vfio_platform_common.c | 13 +-
drivers/vfio/vfio.c | 622 +++++++++++----------------
drivers/vfio/vfio.h | 72 ++++
drivers/vfio/vfio_iommu_spapr_tce.c | 6 +-
drivers/vfio/vfio_iommu_type1.c | 256 ++++-------
include/linux/fsl/mc.h | 14 +
include/linux/mdev.h | 20 -
include/linux/vfio.h | 53 +--
samples/vfio-mdev/mbochs.c | 2 +-
samples/vfio-mdev/mdpy.c | 2 +-
samples/vfio-mdev/mtty.c | 2 +-
23 files changed, 945 insertions(+), 903 deletions(-)
create mode 100644 drivers/bus/fsl-mc/obj-api.c
create mode 100644 drivers/vfio/vfio.h