]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: tpm: do not update profile name for transient domains
authorJán Tomko <jtomko@redhat.com>
Tue, 3 Dec 2024 11:00:08 +0000 (12:00 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 11 Dec 2024 19:10:43 +0000 (20:10 +0100)
commit81da7a2c2a2d490cddaaa77d3e3b36e210b38bd7
treec16f4cd8db0707095636a722db8180f3d368ac73
parentc63bdd17b9f5c31a2511f173d60455b83d22c561
qemu: tpm: do not update profile name for transient domains

If we do not have a persistent definition, there's no point in
looking for it since we cannot store it.

Also skip the update if the tpm device(s) in the persistent
definition are different.

This fixes the crash when starting a transient domain.

https://issues.redhat.com/browse/RHEL-69774
https://gitlab.com/libvirt/libvirt/-/issues/715

Fixes: d79542eec669eb9c449bb8228179e7a87e768017
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
src/qemu/qemu_extdevice.c
src/qemu/qemu_tpm.c