RE: [PATCH v4 03/11] iommufd: Add iommufd_verify_unfinalized_object

2024-10-25 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Tuesday, October 22, 2024 8:19 AM > > To support driver-allocated vIOMMU objects, it's suggested to call the > allocator helper in IOMMU dirvers. However, there is no guarantee that > drivers will all use it and allocate objects properly. > > Add a helper for iommufd

[PATCH v4 03/11] iommufd: Add iommufd_verify_unfinalized_object

2024-10-21 Thread Nicolin Chen
To support driver-allocated vIOMMU objects, it's suggested to call the allocator helper in IOMMU dirvers. However, there is no guarantee that drivers will all use it and allocate objects properly. Add a helper for iommufd core to verify if an unfinalized object is at least reserved in the ictx. S