]> xenbits.xensource.com Git - xen.git/commit
libxl: wait for the ack when issuing power control requests
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 1 Oct 2019 15:22:33 +0000 (17:22 +0200)
committerWei Liu <wl@xen.org>
Wed, 2 Oct 2019 13:43:19 +0000 (14:43 +0100)
commitb183e180bce93037d3ef385a8c2338bbfb7f23d9
tree906c956085587378a25c3d254d96bdf4cc30be37
parent2c9e748729b97795d1b0292e7f6422e3bc327ce0
libxl: wait for the ack when issuing power control requests

Currently only suspend power control requests wait for an ack from the
domain, while power off or reboot requests simply write the command to
xenstore and exit.

Introduce a 1 minute wait for the domain to acknowledge the request, or
else return an error. The suspend code is slightly modified to use the
new infrastructure added, but shouldn't have any functional change.

Fix the ocaml bindings and also provide a backwards compatible
interface for the reboot and poweroff libxl API functions.

Reported-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
[ wei: change ret to rc to fix build ]
Signed-off-by: Wei Liu <wl@xen.org>
tools/libxl/libxl.h
tools/libxl/libxl_dom_suspend.c
tools/libxl/libxl_domain.c
tools/libxl/libxl_internal.h
tools/ocaml/libs/xl/xenlight.ml.in
tools/ocaml/libs/xl/xenlight.mli.in
tools/ocaml/libs/xl/xenlight_stubs.c
tools/xl/xl_vmcontrol.c