]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Add lock process indicator to saved VM state
authorJim Fehlig <jfehlig@suse.com>
Mon, 24 Jan 2022 19:03:20 +0000 (12:03 -0700)
committerJim Fehlig <jfehlig@suse.com>
Tue, 25 Jan 2022 15:50:19 +0000 (08:50 -0700)
commit31e937fb3b7d0aa040a879394eff700bc1108251
tree9aca6a0cbcc1e945a4a172673283ee3609974b1a
parent673b74be5fda928da5e9f3c2cfbf6c1cb1eda0c6
libxl: Add lock process indicator to saved VM state

Commit fa58f571ee added a lock processes indicator to the
libxlDomainObjPrivate struct to note that a lock process was
successfully started for the VM. However, the commit neglected to
add the indicator to the VM's saved state file. As a result, the
indicator is lost on libvirtd restart, along with the knowledge of
whether a lock process was started for the VM.

This change adds support for the indicator in the domainObjPrivate
data parse and format callbacks, ensuring its value survives libvirtd
restarts.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/libxl/libxl_domain.c