This patch adds a NotifierList to MemoryRegions which represent IOMMUs allowing other parts of the code to register interest in mappings or unmappings from the IOMMU. All IOMMU implementations will need to call memory_region_notify_iommu() to inform those waiting on the notifier list, whenever an IOMMU mapping is made or removed.
0686657 memory: Add iommu map/unmap notifiers
include/exec/memory.h | 32 ++++++++++++++++++++++++++++++++
memory.c | 18 ++++++++++++++++++
2 files changed, 50 insertions(+)
Upstream: git.qemu.org