libxl: Re-implement domain_suspend_device_model using libxl__ev_qmp
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 25 Jul 2018 15:16:32 +0000 (16:16 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 11 Jan 2019 14:57:52 +0000 (14:57 +0000)
commit2dc4e7b93bdaccd1ee13a3a6ed7abdd9e549889d
tree81baed73e51271d630db344798176741f96b077e
parent6dda4a4d83930be7fdf768e8fb887e5e80aa6d94
libxl: Re-implement domain_suspend_device_model using libxl__ev_qmp

The re-implementation is done because we want to be able to send the
file description that QEMU can use to save its state. When QEMU is
restricted, it would not be able to write to a path.

This replace both libxl__qmp_stop() and libxl__qmp_save().

qmp_qemu_check_version() was only used by libxl__qmp_save(), so it is
replace by a version using libxl__ev_qmp instead.

Coding style fixed in libxl__domain_suspend_device_model() for the
return value.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dom_suspend.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_qmp.c