summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-12-17 15:31:10 +0800
committerMichael S. Tsirkin <mst@redhat.com>2018-12-19 16:48:16 -0500
commit662b4b69bac99a5cf5f71f2bba7b688d7608250b (patch)
tree880914e1b665fc0a2545ea13dc99e89bc6231b86
parenta09d2038cc5f8e45e2126461e5fb1eb9f4874be3 (diff)
downloadfocaccia-qemu-662b4b69bac99a5cf5f71f2bba7b688d7608250b.tar.gz
focaccia-qemu-662b4b69bac99a5cf5f71f2bba7b688d7608250b.zip
intel_iommu: dump correct iova when failed
The iotlb.iova can be zero if failure really happened.  Dump the addr
instead.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--hw/i386/intel_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index d97bcbc2f7..f21988f396 100644
--- a/hw/i386/intel_iommu.c
+++ b/hw/i386/intel_iommu.c
@@ -2540,7 +2540,7 @@ static IOMMUTLBEntry vtd_iommu_translate(IOMMUMemoryRegion *iommu, hwaddr addr,
                           __func__, pci_bus_num(vtd_as->bus),
                           VTD_PCI_SLOT(vtd_as->devfn),
                           VTD_PCI_FUNC(vtd_as->devfn),
-                          iotlb.iova);
+                          addr);
     }
 
     return iotlb;