mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/libs/light: fix xl save -c handling
libxl_domain_resume() won't work correctly for the case it was called
due to a "xl save -c" command, i.e. to continue the suspended domain.
The information to do that is not saved in libxl__dm_resume_state for
non-HVM domains.
Fixes: 6298f0eb8f ("libxl: Re-introduce libxl__domain_resume")
Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Wei Liu <wl@xen.org>
This commit is contained in:
1 parent
d7c9f7a7a3
commit
87a067fd8f
1 file changed
+2
-1
@@ -630,12 +630,13 @@ void libxl__domain_resume(libxl__egc *egc,
|
||||
goto out;
|
||||
}
|
||||
|
||||
dmrs->suspend_cancel = suspend_cancel;
|
||||
|
||||
if (type != LIBXL_DOMAIN_TYPE_HVM) {
|
||||
rc = 0;
|
||||
goto out;
|
||||
}
|
||||
|
||||
dmrs->suspend_cancel = suspend_cancel;
|
||||
dmrs->dm_resumed_callback = domain_resume_done;
|
||||
libxl__dm_resume(egc, dmrs); /* must be last */
|
||||
return;
|
||||
|
||||