]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Move _virDomainTPMDef::version into _virDomainTPMDef::data::emulator
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 15 Jul 2022 16:04:21 +0000 (18:04 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 1 Aug 2022 15:35:51 +0000 (17:35 +0200)
commitc8992f6d973eeeef6ed1e8a8659ffc67384a4c50
treea1ae13dbd2855c8918df36953e3d42a52c02585f
parent598ffbdd41260fda474bea0370f11f7dec9f72bb
conf: Move _virDomainTPMDef::version into _virDomainTPMDef::data::emulator

The _virDomainTPMDef structure has 'version' member, which is a
bit misplaced. It's only emulator type of TPM that can have a
version, even our documentation says so:

``version``
   The ``version`` attribute indicates the version of the TPM. This attribute
   only works with the ``emulator`` backend. The following versions are
   supported:

Therefore, move the member into that part of union that's
covering emulated TPM devices.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_domain.c
src/qemu/qemu_tpm.c
src/qemu/qemu_validate.c
src/security/virt-aa-helper.c