From: Alex Williamson Subject: [PATCH] Re: [Xen-staging] [xen-unstable] Implement clean return from save/restore failure (so that original Date: Wed, 24 Jan 2007 08:41:36 -0700 Message-ID: <1169653297.5306.3.camel@nevermor.lart> References: Mime-Version: 1.0 Content-Type: text/plain 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 , andrei.petrov@xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, 2007-01-24 at 10:18 +0000, Keir Fraser wrote: > > > On 23/1/07 22:16, "Alex Williamson" wrote: > > >> + /* Reset all secondary CPU states. */ > >> + for ( i = 1; i <= info.max_vcpu_id; i++ ) > > ^^^^ > > > > info isn't defined here on non-x86. Thanks, > > Oops, fixed. Thanks, but it's not quite fixed. The "out" label isn't defined for non-x86. This patch fixes it. Thanks, Alex Signed-off-by: Alex Williamson --- diff -r 259470f0856b tools/libxc/xc_resume.c --- a/tools/libxc/xc_resume.c Wed Jan 24 14:36:03 2007 +0000 +++ b/tools/libxc/xc_resume.c Wed Jan 24 08:38:20 2007 -0700 @@ -58,7 +58,7 @@ static int xc_domain_resume_any(int xc_h if ( xc_domain_getinfo(xc_handle, domid, 1, &info) != 1 ) { PERROR("Could not get domain info"); - goto out; + return rc; } /*