From: Igor Kozhukhov Subject: Re: ctfconvert problems with build on illumos based platform Date: Wed, 15 Jan 2014 00:52:55 +0400 Message-ID: References: <52D5A230.3010005@citrix.com> Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/mixed; boundary="===============6806707874873248734==" Return-path: In-Reply-To: <52D5A230.3010005@citrix.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: Andrew Cooper Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============6806707874873248734== Content-Type: multipart/alternative; boundary="Apple-Mail=_068B81DA-61B8-4217-A07A-E09E804DA542" --Apple-Mail=_068B81DA-61B8-4217-A07A-E09E804DA542 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On Jan 15, 2014, at 12:46 AM, Andrew Cooper wrote: > On 14/01/14 20:38, Igor Kozhukhov wrote: >> Hello All, >>=20 >> I have problems with ctfconvert with build sources of xen-4.2 on = illumos based platform: >> https://www.illumos.org/issues/3205 >>=20 >> could you please let me know - what the reason to have a variable in = structure 'struct hvm_hw_cpu_xsave' >> with zero size: >> struct { char x[0]; } ymm; /* YMM */ >> -- >> Best regards, >> Igor Kozhukhov >>=20 >>=20 >=20 > The structure is variable length depending on whether the VM has = enabled AVX support. >=20 > It is rather unfortunate that we have non-complient C used to specify = the ABI. can we use here ? struct { char x[1]; } ymm; it will fix my problem. -Igor --Apple-Mail=_068B81DA-61B8-4217-A07A-E09E804DA542 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
=20 =20
On 14/01/14 20:38, Igor Kozhukhov wrote:
= Hello All,

I have problems with ctfconvert with build sources of xen-4.2 on illumos based platform:

could you please let me know - what the reason to have a variable in structure 'struct hvm_hw_cpu_xsave'  with zero size:
struct { char x[0]; } ymm;    /* YMM =
*/
--
Best regards,
Igor Kozhukhov



The structure is variable length depending on whether the VM has enabled AVX support.

It is rather unfortunate that we have non-complient C used to specify the ABI.

can we use = here ?
struct { char x[1]; } = ymm;

it will fix my = problem.

-Igor

= --Apple-Mail=_068B81DA-61B8-4217-A07A-E09E804DA542-- --===============6806707874873248734== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============6806707874873248734==--