提交 d78a8c26 编写于 作者: P Peter Krempa

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.
上级 4d72d806
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册