# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1224177923 -3600
# Node ID 7637a5db6d5928bfeb156700e58b70e9c75396ad
# Parent cac3b6ed548856fe13bb120508a319dea565a696
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>
xen-unstable changeset: 18565:8dc05a2b3beb
xen-unstable date: Thu Oct 02 11:32:08 2008 +0100
---
tools/libxc/xc_ptrace.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff -r cac3b6ed5488 -r 7637a5db6d59 tools/libxc/xc_ptrace.c
--- a/tools/libxc/xc_ptrace.c Thu Oct 16 18:24:40 2008 +0100
+++ b/tools/libxc/xc_ptrace.c Thu Oct 16 18:25:23 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
|