mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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)
|
if (maxcpus == 0)
|
||||||
goto syntax;
|
goto syntax;
|
||||||
|
|
||||||
|
if (vcpus == 0)
|
||||||
|
vcpus = maxcpus;
|
||||||
|
|
||||||
if (virDomainDefSetVcpusMax(dom, maxcpus, xmlopt) < 0)
|
if (virDomainDefSetVcpusMax(dom, maxcpus, xmlopt) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user