Re: [PATCH RFC 04/19] iommu: Add an unmap API that returns dirtied IOPTEs

2022-05-02 Thread Joao Martins
On 4/30/22 06:12, Baolu Lu wrote: > On 2022/4/29 05:09, Joao Martins wrote: >> Today, the dirty state is lost and the page wouldn't be migrated to >> destination potentially leading the guest into error. >> >> Add an unmap API that reads the dirty bit and sets it in the >> user passed bitmap. This

Re: [PATCH RFC 04/19] iommu: Add an unmap API that returns dirtied IOPTEs

2022-04-29 Thread Baolu Lu
On 2022/4/29 05:09, Joao Martins wrote: Today, the dirty state is lost and the page wouldn't be migrated to destination potentially leading the guest into error. Add an unmap API that reads the dirty bit and sets it in the user passed bitmap. This unmap iommu API tackles a potentially racy

[PATCH RFC 04/19] iommu: Add an unmap API that returns dirtied IOPTEs

2022-04-28 Thread Joao Martins
Today, the dirty state is lost and the page wouldn't be migrated to destination potentially leading the guest into error. Add an unmap API that reads the dirty bit and sets it in the user passed bitmap. This unmap iommu API tackles a potentially racy update to the dirty bit *when* doing DMA on a