提交 10604cb8 编写于 作者: J John Ferlan

qemu: Check for niothreads == 0 in qemuSetupCgroupForIOThreads

If there are no IOThreads defined, no sense making other checks
上级 4f8e8887
......@@ -1163,6 +1163,9 @@ qemuSetupCgroupForIOThreads(virDomainObjPtr vm)
char *mem_mask = NULL;
virDomainNumatuneMemMode mem_mode;
if (def->niothreadids == 0)
return 0;
if ((period || quota) &&
!virCgroupHasController(priv->cgroup, VIR_CGROUP_CONTROLLER_CPU)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册