Implement clean return from save/restore failure (so that original
A message that is not in the archive (sent off-list or not yet received): [email protected]
Review
Quoted 5 lines · Xen staging patchbot-unstable
(quoted diff) +5
-0+ /* + * (x86 only) Rewrite store_mfn and console_mfn back to MFN (from PFN). + */ +#if defined(__i386__) || defined(__x86_64__) + xc_dominfo_t info;
^^^^
<snip>
Review
Quoted 4 lines
(quoted diff) +4
-0+#endif /* defined(__i386__) || defined(__x86_64__) */ + + /* Reset all secondary CPU states. */ + for ( i = 1; i <= info.max_vcpu_id; i++ )
^^^^
info isn't defined here on non-x86. Thanks,
Alex
Signature · 1 line
Alex Williamson HP Open Source & Linux Org.
Quoted 5 lines · Alex Williamson
Review
Quoted 2 lines
(quoted diff) +2
-0+ /* 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.
-- Keir
Quoted 11 lines · Keir Fraser
Quoted 5 lines · Alex Williamson
Review
Quoted 2 lines
(quoted diff) +2
-0+ /* 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 <[email protected]>
---
tools/libxc/xc_resume.c +1 -1
@@ -58,7 +58,7 @@ static int xc_domain_resume_any(int xc_hif (xc_domain_getinfo (xc_handle, domid,1 , &info) !=1 ) {PERROR ("Could not get domain info" ); - goto out; +return rc; }/*