libxl: Change libxl__domain_suspend_device_model() to be async
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 25 Jul 2018 15:03:09 +0000 (16:03 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 11 Jan 2019 14:57:52 +0000 (14:57 +0000)
commit6dda4a4d83930be7fdf768e8fb887e5e80aa6d94
treebf9e29cfd6881adebb5368c19f0feb2ccc4ebbf2
parentfdbe3394bb94048a5996795ef897f363fc0c0f68
libxl: Change libxl__domain_suspend_device_model() to be async

This create an extra step for the two call sites of the function.

libxl__domain_suspend_device_model() in this patch gets an extra error
variable (there is ret and rc), but ret goes away in the next patch.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
libxl_domain_soft_reset() haven't been tested, as it doesn't appear to
possible to call the function from xl.
tools/libxl/libxl_create.c
tools/libxl/libxl_dom_suspend.c
tools/libxl/libxl_internal.h