]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tpm: Run swtpm_setup with less parameters on incoming migration
authorStefan Berger <stefanb@linux.ibm.com>
Fri, 26 Jul 2019 20:41:10 +0000 (16:41 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 27 Jul 2019 11:56:00 +0000 (07:56 -0400)
commit72299db63690aa4b74131f54398a665a51e3592f
tree448bb780ed4ebfa275853cffa28ccda7c4a670ee
parent43686f362cc08a3f1e5bc94ec7822d3e0d887731
tpm: Run swtpm_setup with less parameters on incoming migration

In case of an incoming migration we do not need to run swtpm_setup
with all the parameters but only want to get the benefit of it
creating a TPM state file for us that we can then label with an
SELinux label. The actual state will be overwritten by the in-
coming state. So we have to pass an indicator for incomingMigration
all the way to the command line parameter generation for swtpm_setup.

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