]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: Add iommu map/unmap notifiers
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 14 May 2013 09:13:56 +0000 (19:13 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Jun 2013 14:32:47 +0000 (16:32 +0200)
commit068665757da047d7d2980c17bba0659eb0ea0a89
treea796657fa689e04bd28489c05c5d99e0e1981ebd
parent30951157441aed950ad8ca326500b4986d431c7a
memory: Add iommu map/unmap notifiers

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.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/exec/memory.h
memory.c