]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/intel_iommu.c
intel_iommu: cleanup vtd_{do_}iommu_translate()
authorPeter Xu <peterx@redhat.com>
Fri, 9 Jun 2017 13:53:28 +0000 (21:53 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 16 Jun 2017 15:44:55 +0000 (18:44 +0300)
commitb9313021f3115e4052966f1975022e4db2df665b
treefeee795a9ee0a10bea56dd789978b3df7b1204d3
parent7feb51b7093145e3ee16b0194099d77e00a18ddb
intel_iommu: cleanup vtd_{do_}iommu_translate()

First, let vtd_do_iommu_translate() return a status, so that we
explicitly knows whether error occured. Meanwhile, we make sure that
IOMMUTLBEntry is filled in in that.

Then, cleanup vtd_iommu_translate a bit. So even with PT we'll get a log
now. Also, remove useless assignments.

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
hw/i386/intel_iommu_internal.h
hw/i386/trace-events