[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [IA64] work around ENOSYS vs EINVAL in ioremap
# HG changeset patch # User awilliam@xxxxxxxxxxx # Node ID 83c0449db67ac3c9b5e04c91ed042a0629ff48d8 # Parent 0dabd651b856a9d7213f4c05a6749553d0580f78 [IA64] work around ENOSYS vs EINVAL in ioremap We should not panic the domain for an EINVAL return from the ioremap hyerpcall. This was only meant for ENOSYS. Long term this is probably not the best place for this kind of sanity checking. Signed-off-by: Alex Williamson <alex.williamson@xxxxxx> --- linux-2.6-xen-sparse/include/asm-ia64/hypercall.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -r 0dabd651b856 -r 83c0449db67a linux-2.6-xen-sparse/include/asm-ia64/hypercall.h --- a/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h Tue May 23 15:10:27 2006 -0600 +++ b/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h Tue May 23 17:05:27 2006 -0600 @@ -431,10 +431,12 @@ HYPERVISOR_ioremap(unsigned long ioaddr, unsigned long ret = ioaddr; if (running_on_xen) { ret = __HYPERVISOR_ioremap(ioaddr, size); - if (unlikely(IS_ERR_VALUE(ret))) + if (unlikely(ret == -ENOSYS)) panic("hypercall %s failed with %ld. " "Please check Xen and Linux config mismatch\n", __func__, -ret); + else if (unlikely(IS_ERR_VALUE(ret))) + ret = ioaddr; } return ret; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |