diff mbox

[RFC,7/8] memory: handle alias for iommu notifier

Message ID 1458872009-13342-8-git-send-email-jasowang@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jason Wang March 25, 2016, 2:13 a.m. UTC
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 memory.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/memory.c b/memory.c
index 95f7209..858b390 100644
--- a/memory.c
+++ b/memory.c
@@ -1509,6 +1509,9 @@  bool memory_region_is_logging(MemoryRegion *mr, uint8_t client)
 
 void memory_region_register_iommu_notifier(MemoryRegion *mr, Notifier *n)
 {
+    if (mr->alias) {
+        memory_region_register_iommu_notifier(mr->alias, n);
+    }
     notifier_list_add(&mr->iommu_notify, n);
 }