]> xenbits.xensource.com Git - libvirt.git/commit
qemu_tpm: Make APIs work over a single virDomainTPMDef
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 29 Apr 2022 14:38:33 +0000 (16:38 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 24 May 2022 14:15:29 +0000 (16:15 +0200)
commit1c23123732c946611a3d12140a6862d6dbd7cad8
tree3798cf2b14ee94031422dcbd50d1308401487a15
parent3663a7d48c04e70caa19ba94566dff35013750d1
qemu_tpm: Make APIs work over a single virDomainTPMDef

In qemu_extdevice.c lives code that handles helper daemons that
are required for some types of devices (e.g. virtiofsd,
vhost-user-gpu, swtpm, etc.). These devices have their own
handling code in separate files, with only a very basic functions
exposed (e.g. for starting/stopping helper process, placing it
into given CGroup, etc.). And these functions all work over a
single instance of device (virDomainVideoDef *, virDomainFSDef *,
etc.), except for TPM handling code which takes virDomainDef *
and iterates over it inside its module.

Remove this oddness and make qemuExtTPM*() functions look closer
to the rest of the code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_extdevice.c
src/qemu/qemu_tpm.c
src/qemu/qemu_tpm.h