[libvirt] [PATCH v4 05/23] schema: Extend the TPM XML schema with support for encryption

Stefan Berger stefanb at linux.vnet.ibm.com
Thu Jul 11 19:41:33 UTC 2019


Extend the TPM XML schema with support for an encryption node.

Signed-off-by: Stefan Berger <stefanb at linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 docs/schemas/domaincommon.rng | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 31db599ab9..4a4f4f8a4d 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -4316,6 +4316,7 @@
           <attribute name="type">
              <value>emulator</value>
           </attribute>
+          <ref name="tpm-backend-emulator-encryption"/>
         </group>
       </choice>
       <choice>
@@ -4345,6 +4346,35 @@
     </optional>
   </define>
 
+  <define name="tpm-backend-emulator-encryption">
+    <optional>
+      <element name="encryption">
+        <attribute name="format">
+          <value>vtpm</value>
+        </attribute>
+        <ref name="vtpmAuthSecret"/>
+      </element>
+    </optional>
+  </define>
+
+  <define name='vtpmAuthSecret'>
+    <element name='secret'>
+      <attribute name='type'>
+        <choice>
+          <value>passphrase</value>
+        </choice>
+      </attribute>
+      <choice>
+        <attribute name='uuid'>
+          <ref name="UUID"/>
+        </attribute>
+        <attribute name='usage'>
+          <text/>
+        </attribute>
+      </choice>
+    </element>
+  </define>
+
   <define name="vsock">
     <element name="vsock">
       <optional>
-- 
2.20.1




More information about the libvir-list mailing list