# 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
|