]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Do not keep swtpm pidfile around after stopping
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 18 Aug 2022 14:03:01 +0000 (16:03 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 24 Aug 2022 21:31:12 +0000 (23:31 +0200)
commit3c2d06d78e1bd2d9298276b44a6ab09cc3b36e5a
treefd26faee26aa990946bc5d2b5529b92e597c46bd
parent4c0310677a48fe3a64d560737b07469725e40ae4
qemu: Do not keep swtpm pidfile around after stopping

Just like the socket, remove the pidfile when TPM emulator is being stopped.  In
order to make this a bit cleaner, try to remove it even if swtpm_ioctl does not
exist.

https://bugzilla.redhat.com/show_bug.cgi?id=2111301

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_tpm.c