]> xenbits.xensource.com Git - xen.git/commit
libxl: memory size in kb requires 64 bit variable
authorJuergen Gross <jgross@suse.com>
Thu, 28 Jul 2016 13:35:19 +0000 (15:35 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 2 Aug 2016 16:03:10 +0000 (17:03 +0100)
commit57f8b13c724023c78fa15a80452d1de3e51a1418
treec4536380d915f3ecdbb2832baae607b1b77f6238
parentf3356e1d4db14439fcca47c493d902bbbb5ec17e
libxl: memory size in kb requires 64 bit variable

libxl_set_memory_target() and several other interface functions of
libxl use a 32 bit sized parameter for a memory size value in kBytes.
This limits the maximum size to be passed in such a parameter
depending on signedness of the parameter to 2TB or 4TB.

Correct this by using 64 bit types.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_numa.c
tools/libxl/xl_cmdimpl.c