]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_tpm: Start swtpm(8) daemon with --terminate switch
authorNick Chevsky <nchevsky@gmail.com>
Mon, 13 Sep 2021 06:16:18 +0000 (01:16 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 15 Sep 2021 07:54:06 +0000 (09:54 +0200)
commitdbc605d8d91fac2f6e55b9fc86d0e61085a9ec71
tree102e5202294884e24db25c49456af24194f3d152
parent757ed5b09ca8a8d9da7fee44e6006a07b4cdb4ac
qemu_tpm: Start swtpm(8) daemon with --terminate switch

Launch swtpm(8) with the --terminate switch, which guarantees that
the daemon will shut itself down when QEMU dies (current behavior).
We had so far been getting this "for free" (i.e. without --terminate)
due to a defect in upstream's connection handling logic [1], on which
libvirt should not rely since it will eventually be fixed. Adding
--terminate preserves and guarantees the current behavior.

[1] https://github.com/stefanberger/swtpm/pull/509

Signed-off-by: Nick Chevsky <nchevsky@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_tpm.c