direct-io.hg

changeset 10130:2fa8573b248f

[IA64] panic when ioremap hypercall fails.

This can occur when dom0 vp model xenlinux is used on P=M model xen/ia64.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Thu May 18 14:05:30 2006 -0600 (2006-05-18)
parents d2f6e3d70f22
children 03424ac6fd58
files linux-2.6-xen-sparse/include/asm-ia64/hypercall.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h	Wed May 17 16:31:46 2006 -0600
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h	Thu May 18 14:05:30 2006 -0600
     1.3 @@ -318,6 +318,7 @@ static inline void exit_idle(void) {}
     1.4  #define do_IRQ(irq, regs) __do_IRQ((irq), (regs))
     1.5  
     1.6  #ifdef CONFIG_XEN_IA64_DOM0_VP
     1.7 +#include <linux/err.h>
     1.8  #include <asm/xen/privop.h>
     1.9  
    1.10  #define _hypercall_imm1(type, name, imm, a1)			\
    1.11 @@ -419,6 +420,10 @@ HYPERVISOR_ioremap(unsigned long ioaddr,
    1.12  	unsigned long ret = ioaddr;
    1.13  	if (running_on_xen) {
    1.14  		ret = __HYPERVISOR_ioremap(ioaddr, size);
    1.15 +		if (unlikely(IS_ERR_VALUE(ret)))
    1.16 +			panic("hypercall %s failed with %ld. "
    1.17 +			      "Please check Xen and Linux config mismatch\n",
    1.18 +			      __func__, -ret);
    1.19  	}
    1.20  	return ret;
    1.21  }