Magenheimer, Dan (HP Labs Fort Collins)
2005-Nov-21 15:09 UTC
[Xen-devel] Re: __ia64__ ifdef in xmalloc.c: "Fix ar.unat handling for fast paths
>From: Rusty Russell <rusty@rustcorp.com.au> > > While browsing the code, I noticed this in xmalloc.c: > >#ifndef __ia64__ > BUG_ON(align > SMP_CACHE_BYTES); >#endif > > This is clearly wrong: due to header alignment we cannot giveyou a>greater alignment than SMP_CACHE_BYTES. Overriding this will cause the >allocation to succeed, but not give the alignment requested. Itusually>indicates the caller should be fixed. > >Does someone with an ia64 box know why, or want to rip it out and see >what breaks?The BUG_ON gets triggered on Xen/ia64. IIRC, there is some subtle semantic difference between how this constant is used on Xen/x86 and Linux/ia64 (from whence the Xen/ia64 header file is directly leveraged). Matt, do you recall the results of your investigation into this? Dan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel