Messages in this thread | | | From | Joerg Roedel <> | Subject | [PATCH 0/2] Introduce iommu_commit() function | Date | Thu, 23 Jun 2011 17:31:21 +0200 |
| |
Hi,
this patch-set introduces a new function into the iommu-api:
iommu_commit(domain);
It needs to be called whenever a some code changed a domain (either by attaching/detaching devices or by mapping/unmapping pages in the domain).
IOMMU drivers can implement the new commit-callback to coalesce any cache flushing on the CPU and in the IOMMU hardware which is necessary after changes have been made to a domain.
David, I think especially VT-d can benefit from such a callback. I will implement support for it in the AMD IOMMU driver and post a patch-set soon.
Any comments, thoughts?
Thanks,
Joerg
| |