mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
qemu: parse: Allow the 'cpus=' prefix for current cpu number
qemu allows following syntax: -smp [cpus=]n[,cores=cores][,threads=threads][,sockets=sockets][,maxcpus=maxcpus] Allow the "cpus" prefix.
This commit is contained in:
parent
4d72d80665
commit
d78a8c26c2
@ -1694,6 +1694,8 @@ qemuParseCommandLineSmp(virDomainDefPtr dom,
|
|||||||
threads = n;
|
threads = n;
|
||||||
else if (STREQ(kws[i], "maxcpus"))
|
else if (STREQ(kws[i], "maxcpus"))
|
||||||
maxcpus = n;
|
maxcpus = n;
|
||||||
|
else if (STREQ(kws[i], "cpus"))
|
||||||
|
vcpus = n;
|
||||||
else
|
else
|
||||||
goto syntax;
|
goto syntax;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user