]> xenbits.xensource.com Git - libvirt.git/commit
qemu_validate: Validate TPM version
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 2 Aug 2022 08:23:23 +0000 (10:23 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Aug 2022 06:14:23 +0000 (08:14 +0200)
commitb91dbf4851d57f536e4de4f3e8496e4e119e22bb
tree8e922f0812bf3b5f84f7b0c601863291251f7bee
parent1445f62fce572750819294747265c6913c1435da
qemu_validate: Validate TPM version

Supported TPM versions are reported in domain capabilities. These
are used already to validate TPM type and model, but not TPM
version. This is suboptimal, because otherwise we leave users to
meet the error when starting a guest and libvirt spawns swtpm
binary which in turn reports an error.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
src/qemu/qemu_validate.c