RE: [PATCH v4 01/11] iommufd: Move struct iommufd_object to public iommufd header
From: Tian, Kevin
Date: Fri Oct 25 2024 - 04:34:54 EST
> From: Nicolin Chen <nicolinc@xxxxxxxxxx>
> Sent: Tuesday, October 22, 2024 8:19 AM
>
> Prepare for an embedded structure design for driver-level iommufd_viommu
> objects:
> // include/linux/iommufd.h
> struct iommufd_viommu {
> struct iommufd_object obj;
> ....
> };
>
> // Some IOMMU driver
> struct iommu_driver_viommu {
> struct iommufd_viommu core;
> ....
> };
>
> It has to expose struct iommufd_object and enum iommufd_object_type
> from
> the core-level private header to the public iommufd header.
>
> Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
> Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx>
Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>