From: Mukesh Rathor Subject: Re: [PATCH] libxc: failure to save/restore 32bit HVM guest Date: Tue, 24 Nov 2009 11:23:48 -0800 Message-ID: <20091124112348.7542f11d@mantra.us.oracle.com> References: <20091123151406.36e032c8@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "Xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 24 Nov 2009 08:48:16 +0000 Keir Fraser wrote: > On 23/11/2009 23:14, "Mukesh Rathor" wrote: > > > Following appears to be an obvious bug. Save/restore of HVM guests > > works fine after the following fix. Including the patch, please let > > me know if you agree. I'll make parallel fix in our previous > > versions here. > > Save/restore of HVM guests should work fine before this fix too, since > nothing in xc_core.c is used for guest save/restore. It's used for > core dumps, as the name implies, and which is a rather different > thing. > > Furthermore I think the code in xc_core.c is correct as is. > > -- Keir > Sorry, my bad, I meant dump core. I was simultaneously looking at save/restore, and accidentally said that. Anyways, since 32bit HVM returns 64bit contexts, it appears the way it is, is buggy, since the sizeof(ctxt[0].c) will return 32bit context size in 32 bit libxc. Infact, after making the fix, user is able to get proper core of a Java HVM guest. Can you please quickly explain why you think it's correct in such case? thanks, Mukesh