From mboxrd@z Thu Jan 1 00:00:00 1970 From: Attilio Rao Subject: Re: Should we revert "mm: New XENMEM space, XENMAPSPACE_gmfn_range"? Date: Thu, 2 Aug 2012 10:45:13 +0100 Message-ID: <501A4C29.5080006@citrix.com> References: <1321471508-31633-1-git-send-email-jean.guyader@eu.citrix.com> <1321471508-31633-2-git-send-email-jean.guyader@eu.citrix.com> <1321471508-31633-3-git-send-email-jean.guyader@eu.citrix.com> <1321471508-31633-4-git-send-email-jean.guyader@eu.citrix.com> <1321471508-31633-5-git-send-email-jean.guyader@eu.citrix.com> <501A631D02000078000921B8@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <501A631D02000078000921B8@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: "xen-devel@lists.xensource.com" , "Keir (Xen.org)" , Konrad Rzeszutek Wilk , "Tim (Xen.org)" , Stefano Stabellini , "allen.m.kay@intel.com" , Jean Guyader , "Jean Guyader (3P)" List-Id: xen-devel@lists.xenproject.org On 02/08/12 10:23, Jan Beulich wrote: >>>> On 01.08.12 at 19:55, Stefano Stabellini wrote: >>>> >> I was reading more about this commit because this patch breaks the ABI >> on ARM, when I realized that on x86 there is no standard that specifies >> the alignment of fields in a struct. >> > There is - the psABI supplements to the SVR4 ABI. > > This is a completely different issue. The problem here gcc/whatever compiler padding added to the struct in order to have alignment of the members to the word boundry. The difference is that this is not enforced in the ARM case (apparently, from Stefano's report) while it happens in the x86 case. This is why it is a good rule to organize member of a struct from the bigger to the smaller when compiling with gcc and this is not the case of the struct in question. In the end it is a compiler decisional thing, not something decided by the ABI. Attilio