]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: tpm: Conditionally create storage on incoming migration
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 24 Oct 2022 10:28:44 +0000 (06:28 -0400)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 9 Nov 2022 11:26:27 +0000 (12:26 +0100)
commit68103e9daf633b789428fedef56f816c92f6ee75
tree73ea70a63bd917732dc1a2b798bef34f7de8ff32
parent384138d7904030906e6a67cccc8ca89cdbac52b8
qemu: tpm: Conditionally create storage on incoming migration

Do not create storage if the TPM state files are on shared storage and
there's an incoming migration since in this case the storage directory
must already exist. Also do not run swtpm_setup in this case.

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