提交 4fa7ba0b 编写于 作者: P Peter Krempa

qemu: process: Set current vcpu count to maximum if it was not specified

Mimic qemu's behavior on the given command line.
上级 d3734b7a
......@@ -1725,6 +1725,9 @@ qemuParseCommandLineSmp(virDomainDefPtr dom,
if (maxcpus == 0)
goto syntax;
if (vcpus == 0)
vcpus = maxcpus;
if (virDomainDefSetVcpusMax(dom, maxcpus, xmlopt) < 0)
goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册