]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: tpm: Remove TPM state after successful migration
authorStefan Berger <stefanb@linux.ibm.com>
Tue, 4 Oct 2022 13:38:14 +0000 (09:38 -0400)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 4 Oct 2022 14:34:28 +0000 (16:34 +0200)
commit92f7aafced8d354cead03e50e1e7d57a99d29435
tree8bf63c98b8cc835f9e4ba9cc83251738c7559555
parent60a06693cceb186efd02b750a2e7aa8c00cd74a8
qemu: tpm: Remove TPM state after successful migration

This patch 'fixes' the behavior of the persistent_state TPM domain XML
attribute that intends to preserve the state of the TPM but should not
keep the state around on all the hosts a VM has been migrated to. It
removes the TPM state directory structure from the source host upon
successful migration when non-shared storage is used. Similarly, it
removes it from the destination host upon migration failure when
non-shared storage is used.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration.c