]> xenbits.xensource.com Git - libvirt.git/commit
qemu_domain: Move TPM post parse code into qemuDomainTPMDefPostParse()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 18 Jul 2022 07:10:12 +0000 (09:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 1 Aug 2022 15:35:51 +0000 (17:35 +0200)
commit2b3e8ddd9d46cbfecbb537bb183ddbcc66713079
treec877ec821e911c51d4ba396ae90ca35782d6d24b
parente31fc5bb2a5c66b9a71e7c7ab52a0ebbc0cae4c3
qemu_domain: Move TPM post parse code into qemuDomainTPMDefPostParse()

In the qemuDomainDefPostParse() we aim to fill in top level
values, which require overall view of domain, or those parts of
configuration that are not a device in domain XML (e.g. vCPUs).
However, inside of qemuDomainDefTPMsPostParse(), which is called
from aforementioned function, we do two tings:

  1) fill in missing info (TPM version), and
  2) validate TPM definition.

Now, if 1) is moved into qemuDomainTPMDefPostParse() (the device
post parse callback), then 2) can be moved into validation step.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_domain.c