mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-08-24 09:49:59 +03: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:
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user