summaryrefslogtreecommitdiffstats
path: root/Documentation/driver-api
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2021-03-30 17:53:08 +0200
committerAlex Williamson <alex.williamson@redhat.com>2021-04-06 19:55:11 +0200
commit07d47b4222d5d1cd933f01587dda00398d8daf40 (patch)
tree061279e8301a8e031932304a6a8ab8f061c2cdd9 /Documentation/driver-api
parentvfio: Make vfio_device_ops pass a 'struct vfio_device *' instead of 'void *' (diff)
downloadlinux-07d47b4222d5d1cd933f01587dda00398d8daf40.tar.xz
linux-07d47b4222d5d1cd933f01587dda00398d8daf40.zip
vfio/pci: Replace uses of vfio_device_data() with container_of
This tidies a few confused places that think they can have a refcount on the vfio_device but the device_data could be NULL, that isn't possible by design. Most of the change falls out when struct vfio_devices is updated to just store the struct vfio_pci_device itself. This wasn't possible before because there was no easy way to get from the 'struct vfio_pci_device' to the 'struct vfio_device' to put back the refcount. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Message-Id: <13-v3-225de1400dfc+4e074-vfio1_jgg@nvidia.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'Documentation/driver-api')
0 files changed, 0 insertions, 0 deletions