From: Alexey Kardashevskiy Date: Mon, 12 Aug 2019 05:42:02 +0000 (+1000) Subject: spapr_iommu: Fix xlate trace to print translated address X-Git-Tag: v4.2.0-rc0~223^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a14f04ebbab80fb7342c277705e6076c309a5e50;p=thirdparty%2Fqemu.git spapr_iommu: Fix xlate trace to print translated address Currently we basically print IO address twice, fix this. Fixes: 7e472264e9e2 ("PPC: spapr: iommu: rework traces") Signed-off-by: Alexey Kardashevskiy Message-Id: <20190812054202.125492-1-aik@ozlabs.ru> Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: David Gibson --- diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c index ce85f8ac632..e87b3d50f7e 100644 --- a/hw/ppc/spapr_iommu.c +++ b/hw/ppc/spapr_iommu.c @@ -136,7 +136,7 @@ static IOMMUTLBEntry spapr_tce_translate_iommu(IOMMUMemoryRegion *iommu, ret.addr_mask = ~page_mask; ret.perm = spapr_tce_iommu_access_flags(tce); } - trace_spapr_iommu_xlate(tcet->liobn, addr, ret.iova, ret.perm, + trace_spapr_iommu_xlate(tcet->liobn, addr, ret.translated_addr, ret.perm, ret.addr_mask); return ret;