]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: Document TPM portion of domcaps
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Jul 2022 14:10:08 +0000 (16:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Jul 2022 09:55:06 +0000 (11:55 +0200)
Surprisingly, we don't document TPM part of domain capabilities.
Fortunately, the information exposed is pretty much self
explanatory, but we should document it regardless.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
docs/formatdomaincaps.rst

index 933469b2a2c147a7cbbf3b525a2a3593cc3f6e55..3c425a9a4a1867fc776acdd405e68e8f07dc9570 100644 (file)
@@ -494,6 +494,35 @@ instance:
 ``driverType``
    Options for the ``type`` attribute of the <filesystem><driver> element.
 
+TPM device
+^^^^^^^^^^
+
+TPM device capabilities are exposed under the ``tpm`` element. For instance:
+
+::
+
+  <domainCapabilities>
+    ...
+    <devices>
+      <tpm supported='yes'>
+        <enum name='model'>
+          <value>tpm-tis</value>
+          <value>tpm-crb</value>
+        </enum>
+        <enum name='backendModel'>
+          <value>passthrough</value>
+          <value>emulator</value>
+        </enum>
+      </tpm>
+      ...
+    </devices>
+  </domainCapabilities>
+
+``model``
+   Options for the ``model`` attribute of the ``<tpm/>`` element.
+``backendModel``
+   Options for the ``type`` attribute of the ``<tpm><backend/>`` element.
+
 Features
 ~~~~~~~~