> From: Nicolin Chen <nicolinc@xxxxxxxxxx> > 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 core to verify if an unfinalized object is at > least reserved in the ictx. > > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>