Re: [PATCH v2 1/7] vfio: Make vfio_(un)register_notifier accept a vfio_device

Jason Gunthorpe
2022-04-22T17:07:54Z

On Fri, Apr 22, 2022 at 01:39:09AM +0000, Tian, Kevin wrote:
> > From: Jason Gunthorpe
> > Sent: Friday, April 22, 2022 12:29 AM
> >
> > All callers have a struct vfio_device trivially available, pass it in
> > directly and avoid calling the expensive vfio_group_get_from_dev().
> >
> > To support the unconverted kvmgt mdev driver add
> > mdev_legacy_get_vfio_device() which will return the vfio_device pointer
> > vfio_mdev.c puts in the drv_data.
>
> stale comment

woops, done

Thanks,
Jason