[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v8 6/9] intel_iommu: use the correct memory regi
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] [PATCH v8 6/9] intel_iommu: use the correct memory region for device IOTLB notification |
Date: |
Thu, 6 Apr 2017 14:57:28 +0300 |
On Thu, Apr 06, 2017 at 03:08:41PM +0800, Peter Xu wrote:
> 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>
> Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Michael S. Tsirkin <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
- Re: [Qemu-devel] [PATCH v8 3/9] memory: provide iommu_replay_all(), (continued)
Re: [Qemu-devel] [PATCH v8 3/9] memory: provide iommu_replay_all(), Michael S. Tsirkin, 2017/04/06
[Qemu-devel] [PATCH v8 4/9] memory: introduce memory_region_notify_one(), Peter Xu, 2017/04/06
[Qemu-devel] [PATCH v8 5/9] memory: add MemoryRegionIOMMUOps.replay() callback, Peter Xu, 2017/04/06
[Qemu-devel] [PATCH v8 6/9] intel_iommu: use the correct memory region for device IOTLB notification, Peter Xu, 2017/04/06
- Re: [Qemu-devel] [PATCH v8 6/9] intel_iommu: use the correct memory region for device IOTLB notification,
Michael S. Tsirkin <=
[Qemu-devel] [PATCH v8 7/9] intel_iommu: provide its own replay() callback, Peter Xu, 2017/04/06
[Qemu-devel] [PATCH v8 8/9] intel_iommu: allow dynamic switch of IOMMU region, Peter Xu, 2017/04/06
[Qemu-devel] [PATCH v8 9/9] intel_iommu: enable remote IOTLB, Peter Xu, 2017/04/06
Re: [Qemu-devel] [PATCH v8 0/9] VT-d: vfio enablement and misc enhances, Michael S. Tsirkin, 2017/04/06
Re: [Qemu-devel] [PATCH v8 0/9] VT-d: vfio enablement and misc enhances, Michael S. Tsirkin, 2017/04/06