Change launch security to make it reusable for other types. Signed-off-by: Boris Fiuczynski <fiuczy@xxxxxxxxxxxxx> --- docs/schemas/domaincommon.rng | 74 +++++++++++++++++++---------------- 1 file changed, 41 insertions(+), 33 deletions(-) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 5ea14b6dbf..045eb093dd 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -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: -- 2.31.1