提交 a00efdda 编写于 作者: O Osier Yang 提交者: Eric Blake

numad: Divide cur_balloon by 1024 before passing it to numad

Numad expects MB by default.
上级 d70f2e11
...@@ -1773,7 +1773,7 @@ qemuGetNumadAdvice(virDomainDefPtr def) ...@@ -1773,7 +1773,7 @@ qemuGetNumadAdvice(virDomainDefPtr def)
cmd = virCommandNewArgList(NUMAD, "-w", NULL); cmd = virCommandNewArgList(NUMAD, "-w", NULL);
virCommandAddArgFormat(cmd, "%d:%llu", def->vcpus, virCommandAddArgFormat(cmd, "%d:%llu", def->vcpus,
def->mem.cur_balloon); VIR_DIV_UP(def->mem.cur_balloon, 1024));
virCommandSetOutputBuffer(cmd, &output); virCommandSetOutputBuffer(cmd, &output);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册