Re: [PATCH v1 07/16] iommufd/viommu: Add driver-allocated vDEVICE support

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

 



On Mon, Apr 21, 2025 at 08:00:37AM +0000, Tian, Kevin wrote:
> > From: Nicolin Chen <nicolinc@xxxxxxxxxx>
> > Sent: Friday, April 11, 2025 2:38 PM
> > 
> > @@ -128,6 +142,9 @@ struct iommufd_viommu_ops {
> >  		const struct iommu_user_data *user_data);
> >  	int (*cache_invalidate)(struct iommufd_viommu *viommu,
> >  				struct iommu_user_data_array *array);
> > +	struct iommufd_vdevice *(*vdevice_alloc)(struct iommufd_viommu
> > *viommu,
> > +						 struct device *dev, u64 id);
> 
> s/id/virt_id/ would be clearer.

OK.

@@ -143,7 +143,8 @@ struct iommufd_viommu_ops {
        int (*cache_invalidate)(struct iommufd_viommu *viommu,
                                struct iommu_user_data_array *array);
        struct iommufd_vdevice *(*vdevice_alloc)(struct iommufd_viommu *viommu,
-                                                struct device *dev, u64 id);
+                                                struct device *dev,
+                                                u64 virt_id);
        void (*vdevice_destroy)(struct iommufd_vdevice *vdev);
 };


Thanks
Nicolin




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux