libvirt/src/libxl
Jim Fehlig ac4a12db71 libxl: don't set hasManagedSave when performing save
libxlDoDomainSave() is used in both the save and managedsave code
paths but was unconditionally setting hasManagedSave to true on
success. As a result, undefine would fail after a non-managed
save/restore operation. E.g.

virsh define; virsh start
virsh save; virsh restore
virsh shutdown
virsh undefine
error: Refusing to undefine while domain managed save image exists

Modify libxlDoDomainSave() to take an additional parameter to
specify managed vs non-managed save, and change callers to use it.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2018-05-15 11:03:04 -06:00
..
libvirtd_libxl.aug libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
libxl_capabilities.c cpu: Drop unused parameter from cpuDecode 2017-10-16 09:21:52 +02:00
libxl_capabilities.h
libxl_conf.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
libxl_conf.h libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
libxl_domain.c conf: Rework/rename virDomainObjListFindByIDRef 2018-04-23 06:41:45 -04:00
libxl_domain.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
libxl_driver.c libxl: don't set hasManagedSave when performing save 2018-05-15 11:03:04 -06:00
libxl_driver.h
libxl_logger.c libxl: define a per-domain logger. 2017-01-11 09:32:47 +01:00
libxl_logger.h libxl: define a per-domain logger. 2017-01-11 09:32:47 +01:00
libxl_migration.c conf: Clean up object referencing for Add and Remove 2018-05-03 19:09:03 -04:00
libxl_migration.h libxl: rename migration APIs to include Src or Dst in their name 2018-03-21 12:59:31 -06:00
libxl.conf libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
Makefile.inc.am make: split libxl driver build rules into libxl/Makefile.inc.am 2018-02-23 13:14:26 +00:00
test_libvirtd_libxl.aug.in libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00