|
|
76daa3 |
From 328695863c6a7de16529044f85f6821811e0cf33 Mon Sep 17 00:00:00 2001
|
|
|
76daa3 |
From: Peter Xu <peterx@redhat.com>
|
|
|
76daa3 |
Date: Mon, 24 Apr 2017 02:52:50 +0200
|
|
|
76daa3 |
Subject: [PATCH 11/23] intel_iommu: use the correct memory region for device
|
|
|
76daa3 |
IOTLB notification
|
|
|
76daa3 |
|
|
|
76daa3 |
RH-Author: Peter Xu <peterx@redhat.com>
|
|
|
76daa3 |
Message-id: <1493002373-13010-7-git-send-email-peterx@redhat.com>
|
|
|
76daa3 |
Patchwork-id: 74854
|
|
|
76daa3 |
O-Subject: [RHEL7.4 qemu-kvm-rhev PATCH v2 6/9] intel_iommu: use the correct memory region for device IOTLB notification
|
|
|
76daa3 |
Bugzilla: 1335808
|
|
|
76daa3 |
RH-Acked-by: Marcel Apfelbaum <marcel@redhat.com>
|
|
|
76daa3 |
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
76daa3 |
RH-Acked-by: Xiao Wang <jasowang@redhat.com>
|
|
|
76daa3 |
|
|
|
76daa3 |
From: Jason Wang <jasowang@redhat.com>
|
|
|
76daa3 |
|
|
|
76daa3 |
We have a specific memory region for DMAR now, so it's wrong to
|
|
|
76daa3 |
trigger the notifier with the root region.
|
|
|
76daa3 |
|
|
|
76daa3 |
Cc: Michael S. Tsirkin <mst@redhat.com>
|
|
|
76daa3 |
Cc: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
76daa3 |
Cc: Richard Henderson <rth@twiddle.net>
|
|
|
76daa3 |
Cc: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
76daa3 |
Signed-off-by: Jason Wang <jasowang@redhat.com>
|
|
|
76daa3 |
Reviewed-by: Peter Xu <peterx@redhat.com>
|
|
|
76daa3 |
Reviewed-by: \"Michael S. Tsirkin\" <mst@redhat.com>
|
|
|
76daa3 |
Signed-off-by: Peter Xu <peterx@redhat.com>
|
|
|
76daa3 |
Message-Id: <1491562755-23867-7-git-send-email-peterx@redhat.com>
|
|
|
76daa3 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
76daa3 |
(cherry picked from commit 10315b9b28c28655ce64500281f4a028d0f8c5ff)
|
|
|
76daa3 |
Signed-off-by: Peter Xu <peterx@redhat.com>
|
|
|
76daa3 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
76daa3 |
---
|
|
|
76daa3 |
hw/i386/intel_iommu.c | 2 +-
|
|
|
76daa3 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
76daa3 |
|
|
|
76daa3 |
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
|
|
|
76daa3 |
index 22d8226..2412df4 100644
|
|
|
76daa3 |
--- a/hw/i386/intel_iommu.c
|
|
|
76daa3 |
+++ b/hw/i386/intel_iommu.c
|
|
|
76daa3 |
@@ -1457,7 +1457,7 @@ static bool vtd_process_device_iotlb_desc(IntelIOMMUState *s,
|
|
|
76daa3 |
entry.iova = addr;
|
|
|
76daa3 |
entry.perm = IOMMU_NONE;
|
|
|
76daa3 |
entry.translated_addr = 0;
|
|
|
76daa3 |
- memory_region_notify_iommu(entry.target_as->root, entry);
|
|
|
76daa3 |
+ memory_region_notify_iommu(&vtd_dev_as->iommu, entry);
|
|
|
76daa3 |
|
|
|
76daa3 |
done:
|
|
|
76daa3 |
return true;
|
|
|
76daa3 |
--
|
|
|
76daa3 |
1.8.3.1
|
|
|
76daa3 |
|