]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tpm: Check TPM XML device configuration changes after edit
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 25 Jul 2019 18:22:13 +0000 (14:22 -0400)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 26 Jul 2019 09:30:59 +0000 (10:30 +0100)
commit94b3aa55f83ada33a9fdda66068d58ef1a56c0a5
tree2e649a3adec6a7e0f81768900d9f41476f511e1f
parenta9d6f1c0542df93cc7c588f01aeea6e5c4e28b71
tpm: Check TPM XML device configuration changes after edit

Since swtpm does not support getting started without password
once it was created with encryption enabled, we don't allow
encryption to be removed. Similarly, we do not allow encryption
to be added once swtpm has run. We also prevent chaning the type
of the TPM backend since the encrypted state is still around and
the next time one was to switch back to the emulator backend
and forgot the encryption the TPM would not work.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_driver.c
src/qemu/qemu_extdevice.c
src/qemu/qemu_extdevice.h