[PATCH 4/5] numad: Divide cur_balloon by 1024 before passing it to numad

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Numad expects MB by default.
---
 src/qemu/qemu_process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 82b17d6..e34cc6d 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -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);
 
-- 
1.7.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]