Skip to contentSkip to conversation

Implement clean return from save/restore failure (so that original

Xen-staging Alex Williamson 2 participants 3 messages Jan 23, 2007 – Jan 24, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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.
#2 lore raw
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

#3 lore raw
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

---

tools/libxc/xc_resume.c +1 -1
diff -r 259470f0856b tools/libxc/xc_resume.c
@@ -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;
     }
 
     /*