diff --git a/builtin-run.c b/builtin-run.c index 924ae80..d5abeb4 100644 --- a/builtin-run.c +++ b/builtin-run.c @@ -817,7 +817,7 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix) if (nrcpus > max_cpus) { printf(" # Limit the number of CPUs to %d\n", max_cpus); - kvm->nrcpus = max_cpus; + nrcpus = max_cpus; } else if (nrcpus > recommended_cpus) { printf(" # Warning: The maximum recommended amount of VCPUs" " is %d\n", recommended_cpus);