[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] add a warning message when ioremap hypercall fails



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 70d5d92066e5705d3f0cef670414d0a192b7ff29
# Parent  1a0b58e7b5de8c666b19d3063658d9a3c25e9bea
[IA64] add a warning message when ioremap hypercall fails

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/mm.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+)

diff -r 1a0b58e7b5de -r 70d5d92066e5 xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Thu Oct 05 12:25:53 2006 -0600
+++ b/xen/arch/ia64/xen/mm.c    Sun Oct 08 18:16:34 2006 -0600
@@ -826,6 +826,20 @@ __assign_domain_page(struct domain *d,
         smp_mb();
         return 0;
     }
+
+    // dom0 tries to map real machine's I/O region, but failed.
+    // It is very likely that dom0 doesn't boot correctly because
+    // it can't access I/O. So complain here.
+    if ((flags & ASSIGN_nocache) &&
+        (pte_pfn(ret_pte) != (physaddr >> PAGE_SHIFT) ||
+         !(pte_val(ret_pte) & _PAGE_MA_UC)))
+        printk("%s:%d WARNING can't assign page domain 0x%p id %d\n"
+               "\talready assigned pte_val 0x%016lx\n"
+               "\tmpaddr 0x%016lx physaddr 0x%016lx flags 0x%lx\n",
+               __func__, __LINE__,
+               d, d->domain_id, pte_val(ret_pte),
+               mpaddr, physaddr, flags);
+
     return -EAGAIN;
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.