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(a)linux.vnet.ibm.com>
Reviewed-by: Stefan Berger <stefanb(a)linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413(a)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(a)redhat.com>
Jano