提交 8aad8432 编写于 作者: D Daniel Henrique Barboza 提交者: John Ferlan

qemu_process.c: adding maxCpus value to error message

Adding the maxCpus value in the error message of qemuValidateCpuCount
allows the user to set an acceptable maxCpus count without knowing
QEMU internals.

x86 guests, that might have been created prior to the x86
qemuDomainDefValidate maxCpus check code (that validates the maxCpus value
in editing time), will also benefit from this change.
Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 bba16ff1
...@@ -3911,8 +3911,9 @@ qemuValidateCpuCount(virDomainDefPtr def, ...@@ -3911,8 +3911,9 @@ qemuValidateCpuCount(virDomainDefPtr def,
} }
if (maxCpus > 0 && virDomainDefGetVcpusMax(def) > maxCpus) { if (maxCpus > 0 && virDomainDefGetVcpusMax(def) > maxCpus) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("Maximum CPUs greater than specified machine type limit")); _("Maximum CPUs greater than specified machine "
"type limit %u"), maxCpus);
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册