]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
vfio/mbochs: Convert to use vfio_register_group_dev()
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 17 Jun 2021 14:22:18 +0000 (16:22 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 21 Jun 2021 21:29:25 +0000 (15:29 -0600)
commit681c1615f8914451cfd432ad30e2f307b6490542
tree9e2f349d623e950b6b0ac993d96ed74a5c6b878c
parent437e41368c01fba8c220d7ca2f6b9d7fde92beee
vfio/mbochs: Convert to use vfio_register_group_dev()

This is straightforward conversion, the mdev_state is actually serving as
the vfio_device and we can replace all the mdev_get_drvdata()'s and the
wonky dead code with a simple container_of().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210617142218.1877096-11-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/vfio-mdev/mbochs.c