[PATCH] schemas: domaincaps: Add missing schema for '<cpu0Id>'

Peter Krempa posted 1 patch 1 week, 1 day ago
src/conf/schemas/domaincaps.rng | 5 +++++
1 file changed, 5 insertions(+)
[PATCH] schemas: domaincaps: Add missing schema for '<cpu0Id>'
Posted by Peter Krempa 1 week, 1 day ago
Fixes: 0236e6154c46603bc443eda2f05c8ce511c55b08
Resolves: https://issues.redhat.com/browse/RHEL-81890
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---

I'll also attempt to add tests for this once I'll be able to get to a
capability dump from a sev-es enabled box.

 src/conf/schemas/domaincaps.rng | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/conf/schemas/domaincaps.rng b/src/conf/schemas/domaincaps.rng
index 3559d2ae05..595dbcd634 100644
--- a/src/conf/schemas/domaincaps.rng
+++ b/src/conf/schemas/domaincaps.rng
@@ -438,6 +438,11 @@
           <data type="unsignedInt"/>
         </element>
       </optional>
+      <optional>
+        <element name="cpu0Id">
+          <data type="string"/>
+        </element>
+      </optional>
     </element>
   </define>

-- 
2.48.1
Re: [PATCH] schemas: domaincaps: Add missing schema for '<cpu0Id>'
Posted by Jiri Denemark 1 week, 1 day ago
On Mon, Mar 03, 2025 at 15:28:12 +0100, Peter Krempa wrote:
> Fixes: 0236e6154c46603bc443eda2f05c8ce511c55b08
> Resolves: https://issues.redhat.com/browse/RHEL-81890
> Signed-off-by: Peter Krempa <pkrempa@redhat.com>
> ---
> 
> I'll also attempt to add tests for this once I'll be able to get to a
> capability dump from a sev-es enabled box.
> 
>  src/conf/schemas/domaincaps.rng | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/src/conf/schemas/domaincaps.rng b/src/conf/schemas/domaincaps.rng
> index 3559d2ae05..595dbcd634 100644
> --- a/src/conf/schemas/domaincaps.rng
> +++ b/src/conf/schemas/domaincaps.rng
> @@ -438,6 +438,11 @@
>            <data type="unsignedInt"/>
>          </element>
>        </optional>
> +      <optional>
> +        <element name="cpu0Id">
> +          <data type="string"/>
> +        </element>
> +      </optional>
>      </element>
>    </define>

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>