Commit-ID: eff4e9264d6e31044ef9b0989ea112acbefe0dc3 Gitweb: http://git.kernel.org/tip/eff4e9264d6e31044ef9b0989ea112acbefe0dc3 Author: Matt Evans <matt@xxxxxxxxxx> AuthorDate: Thu, 8 Dec 2011 13:47:06 +1100 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Thu, 8 Dec 2011 08:23:22 +0200 kvm tools: Correctly limit nrcpus to max_cpus Fix a typo where kvm->nrcpus was set, then immediately overwritten with older value. Signed-off-by: Matt Evans <matt@xxxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/builtin-run.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 924ae80..d5abeb4 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/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); -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html