tools/libs/light: fix xl save -c handling
authorJuergen Gross <jgross@suse.com>
Fri, 19 Feb 2021 14:13:37 +0000 (15:13 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 19 Feb 2021 17:52:41 +0000 (17:52 +0000)
commit87a067fd8f4d4f7c6be02c3d38145115ac542017
tree96270096307295c074d842ea54f1add121aebdce
parentd7c9f7a7a3959913b4b37e782069bf91f0285f9d
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: 6298f0eb8f443 ("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>
tools/libs/light/libxl_dom_suspend.c