[libvirt] [PATCH v5 04/20] schema: Extend the TPM XML schema with support for encryption

Stefan Berger posted 20 patches 6 years, 7 months ago
There is a newer version of this series
[libvirt] [PATCH v5 04/20] schema: Extend the TPM XML schema with support for encryption
Posted by Stefan Berger 6 years, 7 months ago
Extend the TPM XML schema with support for an encryption node.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
---
 docs/schemas/domaincommon.rng | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 31db599ab9..78d72c08bf 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,16 @@
     </optional>
   </define>
 
+  <define name="tpm-backend-emulator-encryption">
+    <optional>
+      <element name="encryption">
+        <attribute name="secret">
+          <ref name="UUID"/>
+        </attribute>
+      </element>
+    </optional>
+  </define>
+
   <define name="vsock">
     <element name="vsock">
       <optional>
-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v5 04/20] schema: Extend the TPM XML schema with support for encryption
Posted by Daniel P. Berrangé 6 years, 6 months ago
On Fri, Jul 12, 2019 at 12:23:38PM -0400, Stefan Berger wrote:
> Extend the TPM XML schema with support for an encryption node.
> 
> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> ---
>  docs/schemas/domaincommon.rng | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Arguably should be squashed into the previous patch.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list