brought online.
Signed-off-by: Kip Macy <kmacy@freebsd.org>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 18565:
8dc05a2b3beb
xen-unstable date: Thu Oct 02 11:32:08 2008 +0100
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;
}
/*