[libvirt] [PATCH v8 01/18] conf: Add support for external swtpm TPM emulator to domain XML

Ján Tomko jtomko at redhat.com
Sat Jun 2 12:58:39 UTC 2018


On Thu, May 24, 2018 at 04:25:57PM -0400, Stefan Berger wrote:
>This patch adds support for an external swtpm TPM emulator. The XML for
>this type of TPM looks as follows:
>
> <tpm model='tpm-tis'>
>   <backend type='emulator'/>
> </tpm>
>
>The XML will currently only define a TPM 1.2.
>
>Extend the documentation.
>
>Add a test case testing the XML parser and formatter.
>
>Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
>Reviewed-by: John Ferlan <jferlan at redhat.com>
>---
> docs/formatdomain.html.in                 | 30 +++++++++++++++++++++++++++
> docs/schemas/domaincommon.rng             |  5 +++++
> src/conf/domain_audit.c                   |  2 ++
> src/conf/domain_conf.c                    | 28 +++++++++++++++++++------
> src/conf/domain_conf.h                    |  6 ++++++
> src/qemu/qemu_cgroup.c                    |  1 +
> src/qemu/qemu_command.c                   |  1 +
> src/qemu/qemu_domain.c                    |  1 +
> src/security/security_dac.c               |  2 ++
> src/security/security_selinux.c           |  2 ++
> tests/qemuxml2argvdata/tpm-emulator.xml   | 30 +++++++++++++++++++++++++++
> tests/qemuxml2xmloutdata/tpm-emulator.xml | 34 +++++++++++++++++++++++++++++++
> tests/qemuxml2xmltest.c                   |  1 +
> 13 files changed, 137 insertions(+), 6 deletions(-)
> create mode 100644 tests/qemuxml2argvdata/tpm-emulator.xml
> create mode 100644 tests/qemuxml2xmloutdata/tpm-emulator.xml
>

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: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180602/56f6864b/attachment-0001.sig>


More information about the libvir-list mailing list