From: Keir Fraser Subject: Re: [PATCH] xc_resume: fix modify_returncode when PV guest width != host width Date: Wed, 04 Nov 2009 22:09:58 +0000 Message-ID: References: <20091104210324.GA9535@kremvax.cs.ubc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20091104210324.GA9535@kremvax.cs.ubc.ca> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Brendan Cully , Xen Developers List-Id: xen-devel@lists.xenproject.org On 04/11/2009 21:03, "Brendan Cully" wrote: > It seems that xm save -c breaks PV guests when their address width > does not match that of domain 0. It looks to me like modify_returncode > is treating the guest VCPU context as native format, but honestly I > don't quite understand the purpose of vcpu_guest_context_any_t.c. > > I suspect I'm missing something obvious about how the compat code is > supposed to work, but at any rate, the attached patch fixes things for > me. No, the code's just stupid and broken. There's a similar bug in xc_domain_resume_any(), accessing ctxt.c.user_regs.edx. I will fix both. Thanks, Keir