[Intel-gfx] [PATCH v1 5/5] vfio: Check the presence for iommufd callbacks in __vfio_register_dev()
Liu, Yi L
yi.l.liu at intel.com
Wed Mar 15 12:15:46 UTC 2023
> From: Jason Gunthorpe <jgg at nvidia.com>
> Sent: Saturday, March 11, 2023 1:40 AM
>
> On Wed, Mar 08, 2023 at 05:13:40AM -0800, Yi Liu wrote:
> > After making the no-DMA drivers (samples/vfio-mdev) providing
> iommufd
> > callbacks, __vfio_register_dev() should check the presence of the
> iommufd
> > callbacks if CONFIG_IOMMUFD is enabled.
> >
> > Signed-off-by: Yi Liu <yi.l.liu at intel.com>
> > ---
> > drivers/vfio/vfio_main.c | 5 +++--
> > 1 file changed, 3 insertions(+), 2 deletions(-)
>
> Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
>
> Alex, when you take this can it please go on a branch that will also
> have the cdev series?
Hi Alex,
I've got a cdev v7 candidate in below branch. It has three sub-series per
the suggestion in prior cdev review.
- cover-letter: Add vfio_device cdev for iommufd support
- cover-letter: Introduce new methods for verifying ownership in vfio PCI hot reset
- cover-letter: vfio: Make emulated devices prepared for vfio device cdev
https://github.com/yiliu1765/iommufd/tree/wip/vfio_device_cdev_v7_candidate
However, there is one open on Nicolin's patch in below link. So I need
to wait for it before sending v7.
https://lore.kernel.org/kvm/ZBGJzefTm4p%2FReIu@Asurada-Nvidia/
Regards,
Yi Liu
More information about the Intel-gfx
mailing list