mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
d3734b7a1d
commit
4fa7ba0b32
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue