From: "Jan Beulich" Subject: RE: compat tool problem with new tmem save/restore tmem_op struct Date: Fri, 31 Jul 2009 07:29:53 +0100 Message-ID: <4A72AB81020000780000D655@vpn.id2.novell.com> References: <2f0ed151-3e92-4195-93cf-b2317bf27266@default> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <2f0ed151-3e92-4195-93cf-b2317bf27266@default> 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: Dan Magenheimer Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org >>> Dan Magenheimer 31.07.09 00:39 >>> >Urk... now with the flattened (single-level union) >structure, the accessors generated for my >ctrl_save structure seem to be getting garbage. >Looking in hex at the pointers that are getting >to the hypervisor, it appears that padding and/or >sizing (and thus the offsets?) of the consecutive >tmem_cli_va_t struct components are wrong >(with 32-bit dom0 and 64-bit hyp). Hmm, pretty odd: Your code looks right afaict without actually trying to compile it (apart from a few missing break statements). Jan