]> xenbits.xensource.com Git - xen.git/commit
libxl: Remove pointless hypercall from libxl_set_memory_target
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 24 Mar 2016 17:17:22 +0000 (17:17 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 25 Mar 2016 19:50:31 +0000 (15:50 -0400)
commit26dbc93a9205e4a08fe12aac3efed980ae3e1ce5
tree2199e64ebdf1546867ffdc0940782c537472b439
parenta67e68c6310e983c76a63cc4863b46ddde6d84db
libxl: Remove pointless hypercall from libxl_set_memory_target

There's no obvious reason for the call to xc_domain_getinfolist -- all
it seems to be doing is checking that the domain exists; but if it
doesn't exist, it will have already failed by this point.

NB that this will change the return value for libxl_set_memory_target:
now it will return 0 on success, rather than returning 1 (which was
the previous behavior).  This is more in line with expected behavior,
and also allows the caller to distingiush between success and other
failure modes (some of which also return 1).

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c