Combine IOMMU recoverable page faults with dma mappings?
Hi,
Forgive an ignorant question, but is it possible to combine an IOMMU recoverable page-fault mapping of
user-space addresses with mappings set up with the dma api in the same PASID? I was thinking something
along the first half or the PASID address pace matches the CPU user-space address space whereas the second half mirrors the mappings set up by the DMA API (or rather the first half of it?)
The use-case is a device mapping where we typically use the mmu range notifier to map relevant parts of
a user-space CPU address space, but where we can't halt DMA fast enough in the mmu notifier invalidation callback for the system to remain responsive. IOMMU pagefaults could be a good replacement, but we still need to be able to map device-allocated system pages within the same PASID.
Any comments or guidance appreciated.
Thanks,
Thomas