Re: [RFC 11/18] dma-iommu: Always enable deferred attaches for liveupdate
From: Jason Gunthorpe
Date: Mon Feb 05 2024 - 12:45:36 EST
On Mon, Feb 05, 2024 at 12:01:56PM +0000, James Gowans wrote:
> Seeing as translations are pre-enabled, all devices will be set for
> deferred attach. The deferred attached actually has to be done when
> doing DMA mapping for devices to work.
This shouldn't be part of your solution..
A DMA API using driver should never be attached to a device that is
being persisted across a kexec. If it does then the device should be
fully reset and re-attached to the normal DMA API iommu domain.
You should be striving to have an iommu_domain to represent the
special post-kexec translation regime.
Jason