mirror of https://gitee.com/openkylin/libvirt.git
numad: Divide cur_balloon by 1024 before passing it to numad
Numad expects MB by default.
This commit is contained in:
parent
d70f2e117a
commit
a00efddab6
|
@ -1773,7 +1773,7 @@ qemuGetNumadAdvice(virDomainDefPtr def)
|
|||
|
||||
cmd = virCommandNewArgList(NUMAD, "-w", NULL);
|
||||
virCommandAddArgFormat(cmd, "%d:%llu", def->vcpus,
|
||||
def->mem.cur_balloon);
|
||||
VIR_DIV_UP(def->mem.cur_balloon, 1024));
|
||||
|
||||
virCommandSetOutputBuffer(cmd, &output);
|
||||
|
||||
|
|
Loading…
Reference in New Issue