032100
From b5a226f307b01bb1b58a88c95d29da34c246757f Mon Sep 17 00:00:00 2001
032100
Message-Id: <b5a226f307b01bb1b58a88c95d29da34c246757f@dist-git>
032100
From: Michal Privoznik <mprivozn@redhat.com>
032100
Date: Tue, 12 Jul 2022 16:10:08 +0200
032100
Subject: [PATCH] docs: Document TPM portion of domcaps
032100
032100
Surprisingly, we don't document TPM part of domain capabilities.
032100
Fortunately, the information exposed is pretty much self
032100
explanatory, but we should document it regardless.
032100
032100
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
032100
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
032100
(cherry picked from commit 6a00c565c4d0f0ec970e043ea2686bd30396ed79)
032100
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2103119
032100
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
032100
---
032100
 docs/formatdomaincaps.rst | 29 +++++++++++++++++++++++++++++
032100
 1 file changed, 29 insertions(+)
032100
032100
diff --git a/docs/formatdomaincaps.rst b/docs/formatdomaincaps.rst
032100
index 933469b2a2..3c425a9a4a 100644
032100
--- a/docs/formatdomaincaps.rst
032100
+++ b/docs/formatdomaincaps.rst
032100
@@ -494,6 +494,35 @@ instance:
032100
 ``driverType``
032100
    Options for the ``type`` attribute of the <filesystem><driver> element.
032100
 
032100
+TPM device
032100
+^^^^^^^^^^
032100
+
032100
+TPM device capabilities are exposed under the ``tpm`` element. For instance:
032100
+
032100
+::
032100
+
032100
+  <domainCapabilities>
032100
+    ...
032100
+    <devices>
032100
+      <tpm supported='yes'>
032100
+        <enum name='model'>
032100
+          <value>tpm-tis</value>
032100
+          <value>tpm-crb</value>
032100
+        </enum>
032100
+        <enum name='backendModel'>
032100
+          <value>passthrough</value>
032100
+          <value>emulator</value>
032100
+        </enum>
032100
+      </tpm>
032100
+      ...
032100
+    </devices>
032100
+  </domainCapabilities>
032100
+
032100
+``model``
032100
+   Options for the ``model`` attribute of the ``<tpm/>`` element.
032100
+``backendModel``
032100
+   Options for the ``type`` attribute of the ``<tpm><backend/>`` element.
032100
+
032100
 Features
032100
 ~~~~~~~~
032100
 
032100
-- 
032100
2.35.1
032100