# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1160119763 -32400 # Node ID 8411f8022e4349b2bc0eb4ef6ffe5ac63cf4e4a3 # Parent 1a0b58e7b5de8c666b19d3063658d9a3c25e9bea add a warning message when ioremap hypercall fails. PATCHNAME: warn_when_ioremap_hypercall_fails. Signed-off-by: Isaku Yamahata diff -r 1a0b58e7b5de -r 8411f8022e43 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 Fri Oct 06 16:29:23 2006 +0900 @@ -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; }