mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
eeed0ffe27
commit
668349f38b
1 file changed
+4
-5
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||