[PATCH v7 06/10] qemu: add validations after TPM Proxy model introduction

Ján Tomko jtomko at redhat.com
Tue Jun 23 13:42:12 UTC 2020


On a Wednesday in 2020, Daniel Henrique Barboza wrote:
>Previous patch handled the conversion of def->tpm to the
>array def->tpms and the XML parsing logic. This patch handles
>the validations needed to ensure the intended behavior.
>
>The existing qemuValidateDomainDeviceDefTPM() function was updated
>to guarantee that the VIR_DOMAIN_TPM_MODEL_SPAPR_PROXY model is
>exclusive to PPC64 guests and to the VIR_DOMAIN_TPM_TYPE_PASSTHROUGH
>backend.
>
>A new function called qemuDomainDefTPMsPostParse() was added to guarantee
>that the following combinations in the same domain are valid:
>
>- a single TPM device
>- a single TPM Proxy device
>- a single TPM + single TPM Proxy devices
>
>And these combinations in the same domain are NOT valid:
>
>- 2 or more TPM devices
>- 2 or more TPM Proxy devices
>
>Tested-by: Satheesh Rajendran <sathnaga at linux.vnet.ibm.com>
>Reviewed-by: Stefan Berger <stefanb at linux.ibm.com>
>Signed-off-by: Daniel Henrique Barboza <danielhb413 at gmail.com>
>---
> src/qemu/qemu_domain.c   | 37 +++++++++++++++++++++++++++++++++++++
> src/qemu/qemu_validate.c | 19 +++++++++++++++++++
> 2 files changed, 56 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200623/fb1a5e74/attachment-0001.sig>


More information about the libvir-list mailing list