render / rpms / libvirt

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