We should avoid kernel panic when a intel_unmap() is called againstDoes that mean you suggest to replace
a non-existent domain.
BUG_ON(!domain);
with something like
if (WARN_ON(!domain))
return;
and to not care of orphaned mappings left allocated? Is there a way to inform
users that their active DMA mappings are no longer valid and they shouldn't
call dma_unmap_*()?
But we shouldn't expect the IOMMU driver notShouldn't then the IOMMU driver take care of cleaning up resources still
cleaning up the domain info when a device remove notification comes and
wait until all file descriptors being closed, right?
allocated on device remove before it invalidates and forgets their pointers?
Thanks,
Janusz