[PATCH v5 04/27] iommu/io-pgtable-arm: Factor kernel specific code out
Mostafa Saleh
smostafa at google.com
Tue Dec 16 15:08:14 PST 2025
On Mon, Dec 15, 2025 at 08:58:34PM -0400, Jason Gunthorpe wrote:
> On Fri, Dec 12, 2025 at 03:37:43PM +0000, Mostafa Saleh wrote:
> > On Fri, Nov 28, 2025 at 12:45:41PM -0400, Jason Gunthorpe wrote:
> > > On Mon, Nov 17, 2025 at 06:47:51PM +0000, Mostafa Saleh wrote:
> > > > Some of the used APIs are only part of the kernel and are not
> > > > available in the hypervisor, factor those out:
> > > > - alloc/free memory
> > >
> > > Why not provide the iommu-pages API for the hypervisor environment?
> > >
> > > Same for virt_to_phys, that could be moved into an iommu-pages wrapper
> > > too..
> >
> > I guess that's possible, but then we would have to stub dma_map/unmap,
> > which might a bit ugly. I will look more into it.
>
> I am hoping to drop the dma_map/unmap and replace it with an arch
> cache flush call directly since the code is no longer modular and
> relying on the DMA API will have some problems with a future patch
> series I'm expecting..
>
I see, I always wondered about that, it's because CMO are not exported
for modules, I can look more into it and send a separate clean up.
Thanks,
Mostafa
> Jason
More information about the linux-arm-kernel
mailing list