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

From: Alex Williamson
Date: Fri Jul 02 2021 - 15:33:19 EST


The following changes since commit 009c9aa5be652675a06d5211e1640e02bbb1c33d:

Linux 5.13-rc6 (2021-06-13 14:43:10 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 6a45ece4c9af473555f01f0f8b97eba56e3c7d0d:

vfio/pci: Handle concurrent vma faults (2021-06-30 13:55:53 -0600)

----------------------------------------------------------------
VFIO update for v5.14-rc1

- Module reference fixes, structure renaming (Max Gurtovoy)

- Export and use common pci_dev_trylock() (Luis Chamberlain)

- Enable direct mdev device creation and probing by parent
(Christoph Hellwig & Jason Gunthorpe)

- Fix mdpy error path leak (Colin Ian King)

- Fix mtty list entry leak (Jason Gunthorpe)

- Enforce mtty device limit (Alex Williamson)

- Resolve concurrent vfio-pci mmap faults (Alex Williamson)

----------------------------------------------------------------
Alex Williamson (3):
Merge branch 'hch-mdev-direct-v4' into v5.14/vfio/next
vfio/mtty: Enforce available_instances
vfio/pci: Handle concurrent vma faults

Christoph Hellwig (3):
driver core: Better distinguish probe errors in really_probe
driver core: Flow the return code from ->probe() through to sysfs bind
driver core: Don't return EPROBE_DEFER to userspace during sysfs bind

Colin Ian King (1):
vfio/mdpy: Fix memory leak of object mdev_state->vconfig

Jason Gunthorpe (8):
driver core: Pull required checks into driver_probe_device()
driver core: Export device_driver_attach()
vfio/mdev: Remove CONFIG_VFIO_MDEV_DEVICE
vfio/mdev: Allow the mdev_parent_ops to specify the device driver to bind
vfio/mtty: Convert to use vfio_register_group_dev()
vfio/mdpy: Convert to use vfio_register_group_dev()
vfio/mbochs: Convert to use vfio_register_group_dev()
vfio/mtty: Delete mdev_devices_list

Luis Chamberlain (2):
PCI: Export pci_dev_trylock() and pci_dev_unlock()
vfio: use the new pci_dev_trylock() helper to simplify try lock

Max Gurtovoy (3):
vfio: centralize module refcount in subsystem layer
vfio/platform: remove unneeded parent_module attribute
vfio/iommu_type1: rename vfio_group struck to vfio_iommu_group

Documentation/driver-api/vfio-mediated-device.rst | 35 ++--
Documentation/s390/vfio-ap.rst | 1 -
arch/s390/Kconfig | 2 +-
drivers/base/base.h | 1 -
drivers/base/bus.c | 8 +-
drivers/base/dd.c | 192 ++++++++++---------
drivers/gpu/drm/i915/Kconfig | 2 +-
drivers/pci/pci.c | 6 +-
drivers/vfio/fsl-mc/vfio_fsl_mc.c | 16 +-
drivers/vfio/mdev/Kconfig | 7 -
drivers/vfio/mdev/Makefile | 3 +-
drivers/vfio/mdev/mdev_core.c | 46 ++++-
drivers/vfio/mdev/mdev_driver.c | 10 +
drivers/vfio/mdev/mdev_private.h | 2 +
drivers/vfio/mdev/vfio_mdev.c | 37 +---
drivers/vfio/pci/vfio_pci.c | 47 ++---
drivers/vfio/platform/vfio_amba.c | 1 -
drivers/vfio/platform/vfio_platform.c | 1 -
drivers/vfio/platform/vfio_platform_common.c | 6 -
drivers/vfio/platform/vfio_platform_private.h | 1 -
drivers/vfio/vfio.c | 10 +
drivers/vfio/vfio_iommu_type1.c | 34 ++--
include/linux/device.h | 2 +
include/linux/mdev.h | 2 +
include/linux/pci.h | 3 +
samples/Kconfig | 6 +-
samples/vfio-mdev/mbochs.c | 163 +++++++++-------
samples/vfio-mdev/mdpy.c | 160 +++++++++-------
samples/vfio-mdev/mtty.c | 219 ++++++++++------------
29 files changed, 522 insertions(+), 501 deletions(-)