diff options
author | Peter Xu | 2017-04-07 12:59:09 +0200 |
---|---|---|
committer | Eduardo Habkost | 2017-04-20 20:22:41 +0200 |
commit | de472e4a92f780d02b894001e004f4b4a350ec38 (patch) | |
tree | 85d5dc5408a92f818cb2d997854b9badc1c105bc /include | |
parent | memory: provide IOMMU_NOTIFIER_FOREACH macro (diff) | |
download | qemu-de472e4a92f780d02b894001e004f4b4a350ec38.tar.gz qemu-de472e4a92f780d02b894001e004f4b4a350ec38.tar.xz qemu-de472e4a92f780d02b894001e004f4b4a350ec38.zip |
memory: provide iommu_replay_all()
This is an "global" version of existing memory_region_iommu_replay() -
we announce the translations to all the registered notifiers, instead of
a specific one.
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: \"Michael S. Tsirkin\" <mst@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1491562755-23867-4-git-send-email-peterx@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/exec/memory.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h index 07e43daf20..fb7dff3405 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -713,6 +713,14 @@ void memory_region_iommu_replay(MemoryRegion *mr, IOMMUNotifier *n, bool is_write); /** + * memory_region_iommu_replay_all: replay existing IOMMU translations + * to all the notifiers registered. + * + * @mr: the memory region to observe + */ +void memory_region_iommu_replay_all(MemoryRegion *mr); + +/** * memory_region_unregister_iommu_notifier: unregister a notifier for * changes to IOMMU translation entries. * |