diff options
author | Jason Gunthorpe <[email protected]> | 2021-10-26 14:57:33 -0300 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2021-10-28 11:06:31 -0600 |
commit | 3bf1311f351ef289f2aee79b86bcece2039fa611 (patch) | |
tree | 6f701bc254cc677df38356bda766affd17c44774 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 39b6ee011f341526308577847f1002be5d1e0a6e (diff) |
vfio/ccw: Convert to use vfio_register_emulated_iommu_dev()
This is a more complicated conversion because vfio_ccw is sharing the
vfio_device between both the mdev_device, its vfio_device and the
css_driver.
The mdev is a singleton, and the reason for this sharing is so the extra
css_driver function callbacks to be delivered to the vfio_device
implementation.
This keeps things as they are, with the css_driver allocating the
singleton, not the mdev_driver.
Embed the vfio_device in the vfio_ccw_private and instantiate it as a
vfio_device when the mdev probes. The drvdata of both the css_device and
the mdev_device point at the private, and container_of is used to get it
back from the vfio_device.
Reviewed-by: Eric Farman <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions