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

qemu: parse: Assign maximum cpu count from topology if not provided

qemu uses this if 'maxcpus' is not present. Do the same in the parsing
code.
上级 0d9a76de
......@@ -1713,8 +1713,14 @@ qemuParseCommandLineSmp(virDomainDefPtr dom,
goto syntax;
}
if (maxcpus == 0)
maxcpus = vcpus;
if (maxcpus == 0) {
if (cores) {
if (virDomainDefGetVcpusTopology(dom, &maxcpus) < 0)
goto error;
} else {
maxcpus = vcpus;
}
}
if (maxcpus == 0)
goto syntax;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册