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

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



On 05/08/2012 10:04 AM, Osier Yang wrote:
> 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));

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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