]> xenbits.xensource.com Git - people/hx242/xen.git/commitdiff
x86/iommu: improve logging message
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 27 Sep 2019 12:07:01 +0000 (14:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2019 12:07:01 +0000 (14:07 +0200)
Switch to using pd and also print the pfn that failed.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/drivers/passthrough/x86/iommu.c

index 47a3e5521353bb4cb5b740e6088baca50577a7a2..7107b117578c26a04294f0cd30b61ff7486e0c4b 100644 (file)
@@ -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();