From: Dan Magenheimer Subject: RE: compat tool problem with new tmem save/restore tmem_op struct Date: Tue, 28 Jul 2009 14:11:12 -0700 (PDT) Message-ID: <8fe5b8a3-b24e-40b5-b4ea-e5d55a9a83a7@default> References: <51535100-ad71-40cc-83fe-f09b7bb62c5c@default> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <51535100-ad71-40cc-83fe-f09b7bb62c5c@default> 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@oracle.com, Jan Beulich Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org > Hi Jan -- >=20 > I'm trying to implement save/restore code for tmem > and to do so I need to pass other variants of the > tmem_op struct between tools (dom0) and the hypervisor > so I made the changes below to struct tmem_op. > Unfortunately the nested union seems to break your compat > translation tool. Is this an easy fix for your > tool? If not, I suppose I can recode to only > use a single level of union. FYI, I've converted the code to a single level union, but the result is questionable as the subop that selects which structure in the union is the first element of each structure. This also required some messy work in the CONFIG_COMPAT in tmh_get_tmemop_from_client, but it compiles now and I can proceed with debugging. Thanks, Dan