WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xc_ptrace: Allow gdbserver to connect to

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xc_ptrace: Allow gdbserver to connect to a guest before APs are
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 08 Oct 2008 18:50:12 -0700
Delivery-date: Wed, 08 Oct 2008 18:50:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1222943528 -3600
# Node ID 8dc05a2b3beb62738cceebffa1371bcf654bff52
# Parent  60937c4c5a673d3b2179255e0f9b2e17bfd8f8be
xc_ptrace: Allow gdbserver to connect to a guest before APs are
brought online.

Signed-off-by: Kip Macy <kmacy@xxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/libxc/xc_ptrace.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff -r 60937c4c5a67 -r 8dc05a2b3beb tools/libxc/xc_ptrace.c
--- a/tools/libxc/xc_ptrace.c   Thu Oct 02 10:37:28 2008 +0100
+++ b/tools/libxc/xc_ptrace.c   Thu Oct 02 11:32:08 2008 +0100
@@ -112,17 +112,16 @@ get_online_cpumap(int xc_handle, struct 
 get_online_cpumap(int xc_handle, struct xen_domctl_getdomaininfo *d,
                   uint64_t *cpumap)
 {
-    int i, online, retval;
+    int i, online;
 
     *cpumap = 0;
     for (i = 0; i <= d->max_vcpu_id; i++) {
-        if ((retval = fetch_regs(xc_handle, i, &online)))
-            return retval;
+        fetch_regs(xc_handle, i, &online);
         if (online)
             *cpumap |= (1 << i);
     }
-
-    return 0;
+    
+    return (*cpumap == 0) ? -1 : 0;
 }
 
 /*

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xc_ptrace: Allow gdbserver to connect to a guest before APs are, Xen patchbot-unstable <=