]> xenbits.xensource.com Git - libvirt.git/commit
tpm: Move qemuTPMEmulatorInit to virTPMEmulatorInit in virtpm.c
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 25 Jul 2019 18:22:02 +0000 (14:22 -0400)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 26 Jul 2019 09:29:57 +0000 (10:29 +0100)
commit4777bbdd76efeeb033e6eae92dbdc6605986e506
treea3eb55a2d4d57f355562dac408fa553f35129a95
parentc4dab041cd90b3b452b4f8fa0b857c33135e2c68
tpm: Move qemuTPMEmulatorInit to virTPMEmulatorInit in virtpm.c

Move qemuTPMEmulatorInit to virTPMEmulatorInit in virtpm.c and introduce
a few functions to query the executables needed for virCommands.

Add locking to protect the tool paths and return a copy of the tool paths
to callers wanting to access them so that we can run the initialization
function multiples time later on and detect when the executable gets updated.

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