]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: tpm: Run swtpm_setup --create-config-files in session mode
authorStefan Berger <stefanb@linux.ibm.com>
Tue, 19 Oct 2021 13:43:20 +0000 (09:43 -0400)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 20 Oct 2021 11:31:26 +0000 (13:31 +0200)
commitc66115b6e81688649da13e00093278ce55c89cb5
tree9dc3826f6a53b7e48f42da400906fa6b492036d5
parente8b5c09a0304513b42b0598bc86820aeaa643b6b
qemu: tpm: Run swtpm_setup --create-config-files in session mode

Using swtpm v0.7.0 we can run swtpm_setup to create default config files
for swtpm_setup and swtpm-localca in session mode. Now a user can start
a VM with an attached TPM without having to run this program on the
command line before. This program needs to run once.

This patch addresses the issue raised in
https://bugzilla.redhat.com/show_bug.cgi?id=2010649

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
src/qemu/qemu_tpm.c
src/util/virtpm.c
src/util/virtpm.h