@@ -1999,6 +1999,7 @@ static void vtd_iotlb_page_invalidate_notify(IntelIOMMUState *s,
.translated_addr = 0,
.addr_mask = size - 1,
.perm = IOMMU_NONE,
+ .type = IOMMU_IOTLB_UNMAP,
};
memory_region_notify_iommu(&vtd_as->iommu, 0, entry);
}
@@ -2465,6 +2466,7 @@ static bool vtd_process_device_iotlb_desc(IntelIOMMUState *s,
entry.iova = addr;
entry.perm = IOMMU_NONE;
entry.translated_addr = 0;
+ entry.type = IOMMU_IOTLB_UNMAP;
memory_region_notify_iommu(&vtd_dev_as->iommu, 0, entry);
done:
@@ -3497,6 +3499,7 @@ static void vtd_address_space_unmap(VTDAddressSpace *as, IOMMUNotifier *n)
entry.perm = IOMMU_NONE;
/* This field is meaningless for unmap */
entry.translated_addr = 0;
+ entry.type = IOMMU_NOTIFIER_UNMAP;
memory_region_notify_iommu_one(n, &entry);
Signed-off-by: Eugenio PĂ©rez <eperezma@redhat.com> --- hw/i386/intel_iommu.c | 3 +++ 1 file changed, 3 insertions(+)