]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_tpm: lock the state explicitly when running swtpm
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 11 Dec 2024 10:37:13 +0000 (14:37 +0400)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 6 Jan 2025 14:58:29 +0000 (15:58 +0100)
commit958283a21f99018df95ee3edc2962f7b3c801be5
tree05d7d730108d3e8153cac68f452284c8d81951a4
parent90014e7bc4d0c03f2b06f077e2a09cb13ed06ba2
qemu_tpm: lock the state explicitly when running swtpm

Commit bb5e26749fe5b ("qemu: explicit swtpm state locking") attempted to
lock the state, but only for swtpm-setup. The capability
"tpmstate-opt-lock" is actually only exposed by swtpm.

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