]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
iommu/x86: print RMRR/IVMD ranges using full addresses
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 23 May 2024 08:03:33 +0000 (10:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 May 2024 08:03:33 +0000 (10:03 +0200)
It's easier to correlate with the physical memory map if the addresses are
fully printed, instead of using frame numbers.

Requested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/x86/iommu.c

index a3fa0aef7c37413b974477a617ef0c52e3fad204..304a2f5480c78dea10ffbe18fd4c6395909beb90 100644 (file)
@@ -801,8 +801,8 @@ bool __init iommu_unity_region_ok(const char *prefix, mfn_t start, mfn_t end)
         return true;
 
     printk(XENLOG_WARNING
-           "%s: [%#" PRI_mfn " ,%#" PRI_mfn "] is not (entirely) in reserved memory\n",
-           prefix, mfn_x(start), mfn_x(end));
+           "%s: [%#lx, %#lx] is not (entirely) in reserved memory\n",
+           prefix, mfn_to_maddr(start), mfn_to_maddr(end));
 
     for ( addr = start; mfn_x(addr) <= mfn_x(end); addr = mfn_add(addr, 1) )
     {