libxc/libxl/python/xenstat/ocaml: Use new XEN_VERSION hypercall
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 10 Mar 2016 21:11:59 +0000 (16:11 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 30 Mar 2016 20:01:20 +0000 (16:01 -0400)
commitd275ec9ca8a86f7c9c213f3551194d471ce90fbd
treeb7020c2299f416f8072e24ffa6ecd2ace70c59c6
parent2716d875379d538c1dfccad78a99ca7db2e09f90
libxc/libxl/python/xenstat/ocaml: Use new XEN_VERSION hypercall

We change the xen_version libxc code to use the new hypercall.
Which of course means every user in the code base has to
be changed over.

It is important to note that the xc_version_op has a different
return semantic than the previous one. It returns negative
values on error (like the old one), but it also returns
an positive value on success (unlike the old one). The positive
value is the number of bytes copied in.

Note that both Ocaml and xenstat use tabs instead of four
spaces so they look quite odd.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com> [for the Ocaml stubs]
Acked-by: George Dunlap <george.dunlap@eu.citrix.com> [xenctx bits]
Acked-by: Wei Liu <wei.liu2@citrix.com>
14 files changed:
tools/libxc/include/xenctrl.h
tools/libxc/xc_core.c
tools/libxc/xc_dom_boot.c
tools/libxc/xc_domain.c
tools/libxc/xc_private.c
tools/libxc/xc_private.h
tools/libxc/xc_resume.c
tools/libxc/xc_sr_save.c
tools/libxc/xg_save_restore.h
tools/libxl/libxl.c
tools/ocaml/libs/xc/xenctrl_stubs.c
tools/python/xen/lowlevel/xc/xc.c
tools/xenstat/libxenstat/src/xenstat.c
tools/xentrace/xenctx.c