Re: [RFC PATCH 13/15] iommufd: Persist iommu domains for live update

From: Pasha Tatashin
Date: Wed Oct 01 2025 - 15:29:47 EST


> > 3. On FINISH, the IOMMU core updates the context entries of preserved
> > devices to point to the new domain.
>
> No, finish should never do anything on the restore path, IMHO. User
> should directly attach the newly created HWPT when it is ready.

But, finish is our indicator that a particular session (VM) is out of
blackout, and now we are free to do slow things, such as
re-allocating/recreating page tables. Why start it before a VM is out
of blackout?