qemu: process: Set current vcpu count to maximum if it was not specified

Mimic qemu's behavior on the given command line.
This commit is contained in:
Peter Krempa 2016-11-14 14:52:40 +01:00
parent d3734b7a1d
commit 4fa7ba0b32
1 changed files with 3 additions and 0 deletions

View File

@ -1725,6 +1725,9 @@ qemuParseCommandLineSmp(virDomainDefPtr dom,
if (maxcpus == 0)
goto syntax;
if (vcpus == 0)
vcpus = maxcpus;
if (virDomainDefSetVcpusMax(dom, maxcpus, xmlopt) < 0)
goto error;