]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Properly propagate migration state to TPM cleanup code
authorJiri Denemark <jdenemar@redhat.com>
Wed, 9 Apr 2025 13:35:20 +0000 (15:35 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 10 Apr 2025 12:15:13 +0000 (14:15 +0200)
commit97ed7f22b089c5fdd9ee02cffc6854f6e021ab2b
treedcfd87988f45bb73363cbcc6f3cc50e5c826c410
parenta5e4ca6f02dc8250f84163a0d19b69300affde43
qemu: Properly propagate migration state to TPM cleanup code

When migrating a domain with TPM state on a shared disk, we need to skip
TPM cleanup on both ends. So far the code only handled successful
migration and skipped the cleanup on the source host. But if the
migration failed for some reason, the cleanup would be incorrectly
called on the destination host removing the TPM files even though the
domain was still running on the source host.

https://issues.redhat.com/browse/RHEL-82411

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_process.c