提交 20b780ae 编写于 作者: O Osier Yang

qemu: Sort the numa params only when it affects the live config

As the next boot doesn't have to worry about the previous numa
params setting (there is no).
上级 d0c0e79a
......@@ -7179,6 +7179,7 @@ qemuDomainSetMemoryParameters(virDomainPtr dom,
goto cleanup;
}
if (flags & VIR_DOMAIN_AFFECT_LIVE) {
/* Get current swap hard limit */
rc = virCgroupGetMemSwapHardLimit(group, &val);
if (rc != 0) {
......@@ -7207,6 +7208,7 @@ qemuDomainSetMemoryParameters(virDomainPtr dom,
}
}
}
}
ret = 0;
for (i = 0; i < nparams; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册