This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] RE: compat tool problem with new tmem save/restore tmem_op s

To: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Subject: [Xen-devel] RE: compat tool problem with new tmem save/restore tmem_op struct
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Fri, 31 Jul 2009 07:29:53 +0100
Cc: "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 30 Jul 2009 23:29:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <2f0ed151-3e92-4195-93cf-b2317bf27266@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <bcbe7902-2b37-47c3-8fcb-ad8f0763d3f4@default> <2f0ed151-3e92-4195-93cf-b2317bf27266@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> 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).


Xen-devel mailing list