diff --git a/tools/xl/xl_vcpu.c b/tools/xl/xl_vcpu.c index 3384eeed06..7b7a93d716 100644 --- a/tools/xl/xl_vcpu.c +++ b/tools/xl/xl_vcpu.c @@ -255,9 +255,9 @@ int main_vcpupin(int argc, char **argv) goto out; if (dryrun_only) { - nb_cpu = libxl_get_online_cpus(ctx); + nb_cpu = libxl_get_max_cpus(ctx); if (nb_cpu < 0) { - fprintf(stderr, "libxl_get_online_cpus failed.\n"); + fprintf(stderr, "libxl_get_max_cpus failed.\n"); goto out; }