]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Enable TPM CRB interface in the domain XML
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 26 Apr 2018 17:42:16 +0000 (13:42 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 3 May 2018 15:28:42 +0000 (11:28 -0400)
commitfead27f4b37cca2a49af7cedabcd230467e46e71
tree1aa00aa2d175f5f2f501ffd02598b8168000d0dc
parent054a66037dc0cb9834e05b7582804fa22e04db1d
conf: Enable TPM CRB interface in the domain XML

Enable the TPM CRB to be specified in the domain XML. This
now allows to describe the TPM device like this:

  <tpm model='tpm-crb'>
    <backend type='passthrough'>
      <device path='/dev/tpm0'/>
    </backend>
  </tpm>

Extend the XML schema to also allow tpm-crb.
Extend the documentation.
Add a test case for testing the XML parser and formatter.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
tests/qemuxml2argvdata/tpm-passthrough-crb.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/tpm-passthrough-crb.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c