]> xenbits.xensource.com Git - xen.git/commit
libxl: libxl_domain_need_memory shouldn't modify b_info
authorWei Liu <wei.liu2@citrix.com>
Mon, 11 Jul 2016 11:03:51 +0000 (12:03 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 12 Jul 2016 11:49:41 +0000 (12:49 +0100)
commitb173750d2bc2c9b57fda9750309824296bdea932
treeb72baefbe45e4bacb25f42b422849a4f161ccfc9
parent11316d31d6844b17b12890f66fbe03d9069bd489
libxl: libxl_domain_need_memory shouldn't modify b_info

This function is used to return the memory needed for a guest. It's not
in a position to modify the b_info passed in (note the _setdefault
function).

Constify the passed in b_info, use a copy to do the calculation. Mark
the change in API in libxl.h.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h