mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[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>
This commit is contained in:
1 parent
b752ccb8d2
commit
d05aa5ad74
1 file changed
+5
@@ -318,6 +318,7 @@ static inline void exit_idle(void) {}
|
||||
#define do_IRQ(irq, regs) __do_IRQ((irq), (regs))
|
||||
|
||||
#ifdef CONFIG_XEN_IA64_DOM0_VP
|
||||
#include <linux/err.h>
|
||||
#include <asm/xen/privop.h>
|
||||
|
||||
#define _hypercall_imm1(type, name, imm, a1) \
|
||||
@@ -419,6 +420,10 @@ HYPERVISOR_ioremap(unsigned long ioaddr, unsigned long size)
|
||||
unsigned long ret = ioaddr;
|
||||
if (running_on_xen) {
|
||||
ret = __HYPERVISOR_ioremap(ioaddr, size);
|
||||
if (unlikely(IS_ERR_VALUE(ret)))
|
||||
panic("hypercall %s failed with %ld. "
|
||||
"Please check Xen and Linux config mismatch\n",
|
||||
__func__, -ret);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||