Skip to content

Commit

Permalink
vfio/mbochs: Convert to use vfio_register_group_dev()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
  • Loading branch information
jgunthorpe authored and awilliam committed Jun 21, 2021
1 parent 437e413 commit 681c161
Showing 1 changed file with 91 additions and 72 deletions.
Loading

0 comments on commit 681c161

Please sign in to comment.