tools: libxl: do not set the PoD target on ARM
authorIan Campbell <ian.campbell@citrix.com>
Thu, 16 Jan 2014 15:27:59 +0000 (15:27 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 4 Feb 2014 15:27:46 +0000 (15:27 +0000)
commitff1745d5882b7356ea423709919e46e55c31b615
treedfc99583d8848a3aab1ce6b3623bbfb8b4612d75
parent5224a733d3bd4d0db3548712047506c50487085e
tools: libxl: do not set the PoD target on ARM

ARM does not implemented PoD and so returns ENOSYS from XENMEM_set_pod_target.

The correct solution here would be to check for ENOSYS in libxl, unfortunately
xc_domain_set_pod_target suffers from the same broken error reporting as the
rest of libxc and throws away the errno.

So for now conditionally define xc_domain_set_pod_target to return success
(which is what PoD does if nothing needs doing). xc_domain_get_pod_target sets
errno==-1 and returns -1, which matches the broken error reporting of the
existing function. It appears to have no in tree callers in any case.

The conditional should be removed once libxc has been fixed.

This makes ballooning (xl mem-set) work for ARM domains.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Cc: george.dunlap@citrix.com
tools/libxc/xc_domain.c