1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-26 14:03:49 +03:00

schemas: Refactor launch security

Change launch security to make it reusable for other types.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Boris Fiuczynski 2021-07-16 11:44:25 +02:00 committed by Pavel Hrdina
parent bab44aa963
commit 001b482e30

View File

@ -482,42 +482,50 @@
<define name="launchSecurity">
<element name="launchSecurity">
<attribute name="type">
<value>sev</value>
</attribute>
<interleave>
<optional>
<element name="cbitpos">
<data type="unsignedInt"/>
</element>
</optional>
<optional>
<element name="reducedPhysBits">
<data type="unsignedInt"/>
</element>
</optional>
<element name="policy">
<ref name="hexuint"/>
</element>
<optional>
<element name="handle">
<ref name="unsignedInt"/>
</element>
</optional>
<optional>
<element name="dhCert">
<data type="string"/>
</element>
</optional>
<optional>
<element name="session">
<data type="string"/>
</element>
</optional>
</interleave>
<choice>
<group>
<ref name="launchSecuritySEV"/>
</group>
</choice>
</element>
</define>
<define name="launchSecuritySEV">
<attribute name="type">
<value>sev</value>
</attribute>
<interleave>
<optional>
<element name="cbitpos">
<data type="unsignedInt"/>
</element>
</optional>
<optional>
<element name="reducedPhysBits">
<data type="unsignedInt"/>
</element>
</optional>
<element name="policy">
<ref name="hexuint"/>
</element>
<optional>
<element name="handle">
<ref name="unsignedInt"/>
</element>
</optional>
<optional>
<element name="dhCert">
<data type="string"/>
</element>
</optional>
<optional>
<element name="session">
<data type="string"/>
</element>
</optional>
</interleave>
</define>
<!--
Enable or disable perf events for the domain. For each
of the events the following rules apply: