diff options
author | Andrew Jones <drjones@redhat.com> | 2016-06-21 18:34:04 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-29 14:03:48 +0200 |
commit | 66f37d360b3fc91275ab6ca3de81f0d356c24b4a (patch) | |
tree | 3bb194b886e96f0f256337ca8d8d0c218c68e0dc /include/glib-compat.h | |
parent | 8f242cb724cad4a3996e4634e55b7c03ed508a69 (diff) |
vl: smp_parse: fix regression
Commit 0544edd88a "vl: smp_parse: cleanups" regressed any -smp
config that left either cores or threads unspecified, and specified
a topology supporting more cpus than the given online cpus. The
correct way to calculate the missing parameter would be to use
maxcpus, but it's too late to change that now. Restore the old
way, which is to calculate it with the online cpus (as is still
done), but then, if the result is zero, just set it to one.
Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-Id: <1466526844-29245-1-git-send-email-drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/glib-compat.h')
0 files changed, 0 insertions, 0 deletions