[PATCH v7 05/10] conf, qemu, security, tests: introducing 'def->tpms' array

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


On a Wednesday in 2020, Daniel Henrique Barboza wrote:
>A TPM Proxy device can coexist with a regular TPM, but the
>current domain definition supports only a single TPM device
>in the 'tpm' pointer. This patch replaces this existing pointer
>in the domain definition to an array of TPM devices.
>
>All files that references the old pointer were adapted to
>handle the new array instead. virDomainDefParseXML() TPM related
>code was adapted to handle the parsing of an extra TPM device.
>TPM validations after this new scenario will be updated in
>the next patch.
>
>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/conf/domain_audit.c         |  4 +--
> src/conf/domain_conf.c          | 50 +++++++++++++++++++------------
> src/conf/domain_conf.h          |  6 +++-
> src/qemu/qemu_alias.c           |  4 +--
> src/qemu/qemu_cgroup.c          | 10 ++++---
> src/qemu/qemu_command.c         | 34 ++++++++++++++-------
> src/qemu/qemu_domain.c          | 31 +++++++++++++-------
> src/qemu/qemu_domain_address.c  | 11 ++++---
> src/qemu/qemu_extdevice.c       | 18 +++++++-----
> src/qemu/qemu_tpm.c             | 52 +++++++++++++++++++++++++--------
> src/security/security_dac.c     |  8 ++---
> src/security/security_selinux.c | 32 ++++++++++++--------
> src/security/virt-aa-helper.c   |  9 ++++--
> tests/qemuxml2argvtest.c        | 13 +++++----
> 14 files changed, 186 insertions(+), 96 deletions(-)
>

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/4e26f221/attachment-0001.sig>


More information about the libvir-list mailing list