From: Keir Fraser Subject: Re: [PATCH] x86: optimize this_cpu() Date: Tue, 13 Jul 2010 15:27:33 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 13/07/2010 15:26, "Keir Fraser" wrote: > That's just nasty. If we need the structure to be 16-byte aligned then we > should achieve it via __attribute__((__aligned__(16))). And if we add that > we may as well not ifdef it, I'm sure the up to 12 bytes padding on i386 > won't cause stack overflow. I should add: if you agree please re-do the patch. Also a code comment on what the alignment attribute is for would be a good idea of course. -- Keir