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:
Peter Krempa 2016-11-14 14:47:23 +01:00
parent 4d72d80665
commit d78a8c26c2

View File

@ -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;
}