From: "Jan Beulich" Subject: Re: headers.chk failing under certain circumstances. Date: Tue, 13 Dec 2011 14:25:49 +0000 Message-ID: <4EE76E7D020000780006758F@nat28.tlf.novell.com> References: <4EE76C7E0200007800067541@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andrew Cooper , Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 13.12.11 at 15:21, Keir Fraser wrote: > On 13/12/2011 14:17, "Jan Beulich" wrote: > >>> Given that uint64_aligned_t is a >>> sensible datatype to be using with the hypercall interface, fixing the >>> check seems to be the correct solution. >> >> Sensible or not, you would have to find a way to define such a type >> in a compiler-independent (i.e. ANSI conforming) manner, and I'm >> afraid you won't be able to. > > Yes, as barbaric as it may seem you just have to make sure that uint64_t > gets naturally 8-byte aligned. Luckily none of our interface structures are > particularly large, and I believe you can get them checked for 32/64-bit > invariance by adding them to xlat.lst. ... and invoking the resultant check macro somewhere in the sources. Jan