From: Ian Campbell Subject: Re: ctfconvert problems with build on illumos based platform Date: Wed, 15 Jan 2014 09:44:14 +0000 Message-ID: <1389779054.12434.126.camel@kazak.uk.xensource.com> References: <52D5A230.3010005@citrix.com> <52D5A4E3.1080405@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52D5A4E3.1080405@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: Igor Kozhukhov , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-01-14 at 20:58 +0000, Andrew Cooper wrote: > The content of this structure is only relevant as far as > hvm_{save,load}_cpu_xsave_states() goes, which resorts to some > pointer-trickary to move the data. Changing that char x[0] to char > x[1] will break the pointer trickary, and migration will suffer an ABI > breakage. The pointer-trickery will need updating at the same time then, that's not rocket science and the use of a single char array is the normal portable way to do these sorts of variable length suffixes to structs. Ian.