From 0aeacaa0c95beddbc054ef5a70845e3e4cf4f385 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roger=20Pau=20Monn=C3=A9?= Date: Fri, 27 Sep 2019 14:07:01 +0200 Subject: [PATCH] x86/iommu: improve logging message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Switch to using pd and also print the pfn that failed. No functional change intended. Signed-off-by: Roger Pau Monné Reviewed-by: Jan Beulich Release-acked-by: Juergen Gross --- xen/drivers/passthrough/x86/iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/drivers/passthrough/x86/iommu.c b/xen/drivers/passthrough/x86/iommu.c index 47a3e55213..7107b11757 100644 --- a/xen/drivers/passthrough/x86/iommu.c +++ b/xen/drivers/passthrough/x86/iommu.c @@ -200,8 +200,8 @@ void __hwdom_init arch_iommu_hwdom_init(struct domain *d) IOMMUF_readable | IOMMUF_writable, &flush_flags); if ( rc ) - printk(XENLOG_WARNING " d%d: IOMMU mapping failed: %d\n", - d->domain_id, rc); + printk(XENLOG_WARNING "%pd: identity %smapping of %lx failed: %d\n", + d, !paging_mode_translate(d) ? "IOMMU " : "", pfn, rc); if (!(i & 0xfffff)) process_pending_softirqs(); -- 2.30.2