xc_ptrace: Allow gdbserver to connect to a guest before APs are

brought online.

Signed-off-by: Kip Macy <kmacy@freebsd.org>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2008-10-02 11:32:08 +01:00
1 parent eeed0ffe27
commit 668349f38b
1 file changed
+4 -5
+4 -5
View File
@@ -112,17 +112,16 @@ static int
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;
}
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.