RE: [PATCH v7 12/22] vfio-iommufd: Move noiommu support out of vfio_iommufd_bind()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Liu, Yi L <yi.l.liu@xxxxxxxxx>
> Sent: Thursday, March 16, 2023 8:55 PM
>
> @@ -192,6 +192,15 @@ static int vfio_device_group_open(struct
> vfio_device_file *df)
>  		vfio_device_group_get_kvm_safe(device);
> 
>  	df->iommufd = device->group->iommufd;
> +	if (device->group->iommufd && vfio_device_is_noiommu(device)) {
> +		if (device->open_count == 0) {
> +			ret =
> vfio_iommufd_enable_noiommu_compat(device,
> +								 device-
> >group->iommufd);

use df->iommufd which is simpler.

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux