[Intel-gfx] [PATCH v7 17/22] vfio-iommufd: Add detach_ioas support for emulated VFIO devices

Tian, Kevin kevin.tian at intel.com
Fri Mar 17 02:16:40 UTC 2023


> From: Liu, Yi L <yi.l.liu at intel.com>
> Sent: Thursday, March 16, 2023 8:55 PM
> +
> +void vfio_iommufd_emulated_detach_ioas(struct vfio_device *vdev)
> +{
> +	lockdep_assert_held(&vdev->dev_set->lock);
> +
> +	if (WARN_ON(!vdev->iommufd_access) || !vdev->iommufd_attached)
> +		return;
> +

ditto the WANR_ON on the latter condition should be removed.


More information about the Intel-gfx mailing list