projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a09d203
)
intel_iommu: dump correct iova when failed
author
Peter Xu
<peterx@redhat.com>
Mon, 17 Dec 2018 07:31:10 +0000
(15:31 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Wed, 19 Dec 2018 21:48:16 +0000
(16:48 -0500)
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>
hw/i386/intel_iommu.c
patch
|
blob
|
history
diff --git
a/hw/i386/intel_iommu.c
b/hw/i386/intel_iommu.c
index d97bcbc2f7d1ae89349e9479dc1d3980047b044a..f21988f39690196ffe3a00661408a8beddf0f3c6 100644
(file)
--- 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;