mirror of https://gitee.com/openkylin/libvirt.git
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;
|
||||
else if (STREQ(kws[i], "maxcpus"))
|
||||
maxcpus = n;
|
||||
else if (STREQ(kws[i], "cpus"))
|
||||
vcpus = n;
|
||||
else
|
||||
goto syntax;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue