From ad580b07fc09ba851d9c9c6024c3b9b16d7ff18f Mon Sep 17 00:00:00 2001
From: Xu Raoqing <xuraoqing@huawei.com>
Date: Fri, 14 Nov 2025 12:08:51 +0800
Subject: [PATCH] CCA:fixed virsh edit can not save
Signed-off-by: Xu Raoqing <xuraoqing@huawei.com>
src/conf/schemas/domaincommon.rng | 51 ++++++++++++++++---------------
1 file changed, 26 insertions(+), 25 deletions(-)
@@ -523,6 +523,9 @@
<group>
<ref name="launchSecurityCVM"/>
</group>
+ <group>
+ <ref name="launchSecurityCCA"/>
+ </group>
</choice>
</element>
</define>
@@ -574,6 +577,29 @@
</attribute>
</define>
+ <define name="launchSecurityCCA">
+ <attribute name="type">
+ <value>cca</value>
+ </attribute>
+ <interleave>
+ <optional>
+ <attribute name="measurement-log">
+ <ref name="virYesNo"/>
+ </attribute>
+ </optional>
+ <optional>
+ <element name="measurement-algo">
+ <data type="string"/>
+ </element>
+ </optional>
+ <optional>
+ <element name="personalization-value">
+ <data type="string"/>
+ </element>
+ </optional>
+ </interleave>
+ </define>
+
<!--
Enable or disable perf events for the domain. For each
of the events the following rules apply:
@@ -1965,9 +1991,6 @@
<ref name="absFilePath"/>
</attribute>
</group>
- <group>
- <ref name="launchSecurityCCA"/>
- </group>
</choice>
</element>
</define>
@@ -2567,28 +2590,6 @@
</element>
</define>
- <define name="launchSecurityCCA">
- <attribute name="type">
- <value>cca</value>
- </attribute>
- <interleave>
- <optional>
- <attribute name="measurement-log">
- <ref name="virYesNo"/>
- </attribute>
- </optional>
- <optional>
- <element name="measurement-algo">
- <data type="string"/>
- </element>
- </optional>
- <optional>
- <element name="personalization-value">
- <data type="string"/>
- </element>
- </optional>
- </interleave>
- </define>
<!--
Disk may use a special driver for access.
-->
--
2.51.0.windows.1