Re: [Intel-gfx] [PATCH 10/12] vfio/mdev: Remove mdev_parent_ops

2021-04-27 Thread Jason Gunthorpe
On Mon, Apr 26, 2021 at 04:19:11PM +0200, Christoph Hellwig wrote: > > +The mediated bus driver's probe function should create a vfio_device on > > top of > > +the mdev_device and connect it to an appropriate implementation of > > vfio_device_ops. > > Overly long line. > > > +This will provide

Re: [Intel-gfx] [PATCH 10/12] vfio/mdev: Remove mdev_parent_ops

2021-04-26 Thread Christoph Hellwig
> +The mediated bus driver's probe function should create a vfio_device on top > of > +the mdev_device and connect it to an appropriate implementation of > vfio_device_ops. Overly long line. > +This will provide the 'mdev_supported_types/XX/create' files which can then > be used > +to trigger

[Intel-gfx] [PATCH 10/12] vfio/mdev: Remove mdev_parent_ops

2021-04-26 Thread Jason Gunthorpe
The last useful member in this struct is the supported_type_groups, move it to the mdev_driver and delete mdev_parent_ops. Replace it with mdev_driver as an argument to mdev_register_device() Signed-off-by: Jason Gunthorpe --- .../driver-api/vfio-mediated-device.rst | 36 +++--