From: Viktor Kleinik <viktor.klei...@globallogic.com> During domain destroy we should change its state from "alive" to "dying" to prevent reboot because of watchdog timeout.
Signed-off-by: Viktor Kleinik <viktor.klei...@globallogic.com> --- tools/libxl/libxl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 1366177..ac50bda 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -1634,6 +1634,10 @@ void libxl__destroy_domid(libxl__egc *egc, libxl__destroy_domid_state *dis) dis->drs.callback = devices_destroy_cb; dis->drs.force = 1; libxl__devices_destroy(egc, &dis->drs); + rc = xc_domain_destroy(ctx->xch, domid); + if (rc < 0) { + LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_ERROR, rc, "xc_domain_destroy failed for %d", domid); + } return; out: -- 2.8.2 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel