[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v9 6/9] intel_iommu: use the correct memory region f
From: |
Peter Xu |
Subject: |
[Qemu-devel] [PATCH v9 6/9] intel_iommu: use the correct memory region for device IOTLB notification |
Date: |
Fri, 7 Apr 2017 18:59:12 +0800 |
From: Jason Wang <address@hidden>
We have a specific memory region for DMAR now, so it's wrong to
trigger the notifier with the root region.
Cc: Michael S. Tsirkin <address@hidden>
Cc: Paolo Bonzini <address@hidden>
Cc: Richard Henderson <address@hidden>
Cc: Eduardo Habkost <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Peter Xu <address@hidden>
Reviewed-by: \"Michael S. Tsirkin\" <address@hidden>
Signed-off-by: Peter Xu <address@hidden>
---
hw/i386/intel_iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 22d8226..2412df4 100644
--- a/hw/i386/intel_iommu.c
+++ b/hw/i386/intel_iommu.c
@@ -1457,7 +1457,7 @@ static bool vtd_process_device_iotlb_desc(IntelIOMMUState
*s,
entry.iova = addr;
entry.perm = IOMMU_NONE;
entry.translated_addr = 0;
- memory_region_notify_iommu(entry.target_as->root, entry);
+ memory_region_notify_iommu(&vtd_dev_as->iommu, entry);
done:
return true;
--
2.7.4
[Qemu-devel] [PATCH v9 2/9] memory: provide IOMMU_NOTIFIER_FOREACH macro, Peter Xu, 2017/04/07
[Qemu-devel] [PATCH v9 3/9] memory: provide iommu_replay_all(), Peter Xu, 2017/04/07
[Qemu-devel] [PATCH v9 4/9] memory: introduce memory_region_notify_one(), Peter Xu, 2017/04/07
[Qemu-devel] [PATCH v9 5/9] memory: add MemoryRegionIOMMUOps.replay() callback, Peter Xu, 2017/04/07
[Qemu-devel] [PATCH v9 6/9] intel_iommu: use the correct memory region for device IOTLB notification,
Peter Xu <=
[Qemu-devel] [PATCH v9 7/9] intel_iommu: provide its own replay() callback, Peter Xu, 2017/04/07
[Qemu-devel] [PATCH v9 8/9] intel_iommu: allow dynamic switch of IOMMU region, Peter Xu, 2017/04/07
[Qemu-devel] [PATCH v9 9/9] intel_iommu: enable remote IOTLB, Peter Xu, 2017/04/07