WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: __ia64__ ifdef in xmalloc.c: "Fix ar.unat handling for f

To: "Rusty Russell" <rusty@xxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: __ia64__ ifdef in xmalloc.c: "Fix ar.unat handling for fast paths
From: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Date: Mon, 21 Nov 2005 07:09:02 -0800
Cc: Matt Chapman <matthewc@xxxxxxxxxxxxxxx>, Tony Breeds <tony@xxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 21 Nov 2005 15:09:09 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXurYGZIj4yhdwkRUqFfivZhdSImA==
Thread-topic: Re: __ia64__ ifdef in xmalloc.c: "Fix ar.unat handling for fast paths
>From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
>       
>       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 give
you a
>greater alignment than SMP_CACHE_BYTES.  Overriding this will cause the
>allocation to succeed, but not give the alignment requested.  It
usually
>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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: __ia64__ ifdef in xmalloc.c: "Fix ar.unat handling for fast paths, Magenheimer, Dan (HP Labs Fort Collins) <=