Message ID | 20240214103741.16189-5-roger.pau@citrix.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Fix fallout from IVMD/RMRR unification checks | expand |
On 14.02.2024 11:37, Roger Pau Monne wrote: > Provide more information in case the page can't be converted, and print the > original type(s). > > Requested-by: Andrew Cooper <andrew.cooper3@citrix.com> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com>
diff --git a/xen/drivers/passthrough/x86/iommu.c b/xen/drivers/passthrough/x86/iommu.c index e713cf803e8a..217409c29644 100644 --- a/xen/drivers/passthrough/x86/iommu.c +++ b/xen/drivers/passthrough/x86/iommu.c @@ -827,8 +827,8 @@ bool __init iommu_unity_region_ok(const char *prefix, mfn_t start, mfn_t end) RAM_TYPE_UNUSABLE) ) continue; - printk(XENLOG_ERR "%s: page at %#lx can't be converted\n", - prefix, paddr_to_pfn(addr)); + printk(XENLOG_ERR "%s: page at %#lx can't be converted (type %#x)\n", + prefix, paddr_to_pfn(addr), type); return false; }
Provide more information in case the page can't be converted, and print the original type(s). Requested-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> --- xen/drivers/passthrough/x86/iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)