[PATCH 3/3] schema: Add maxphysaddr element to hostcpu

Jim Fehlig jfehlig at suse.com
Thu Aug 11 22:44:18 UTC 2022


The output of "virsh capabilities" was not conformant to the
capability.rng schema. Add the missing element to the schema.

Fixes: c647bf29afb9890c792172ecf7db2c9c27babbb6
Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
Signed-off-by: Jim Fehlig <jfehlig at suse.com>
---

This is essentially a V2 of Tim's patch, with test case added

https://listman.redhat.com/archives/libvir-list/2022-August/233624.html

 src/conf/schemas/cputypes.rng            | 3 +++
 tests/capabilityschemadata/caps-test.xml | 1 +
 2 files changed, 4 insertions(+)

diff --git a/src/conf/schemas/cputypes.rng b/src/conf/schemas/cputypes.rng
index 219acaef14..986a5f3715 100644
--- a/src/conf/schemas/cputypes.rng
+++ b/src/conf/schemas/cputypes.rng
@@ -389,6 +389,9 @@
         <optional>
           <ref name="cpuTopology"/>
         </optional>
+        <optional>
+          <ref name="cpuMaxPhysAddr"/>
+        </optional>
         <zeroOrMore>
           <element name="feature">
             <attribute name="name">
diff --git a/tests/capabilityschemadata/caps-test.xml b/tests/capabilityschemadata/caps-test.xml
index 44a390a5b6..b508f25dce 100644
--- a/tests/capabilityschemadata/caps-test.xml
+++ b/tests/capabilityschemadata/caps-test.xml
@@ -4,6 +4,7 @@
     <cpu>
       <arch>i686</arch>
       <vendor>Intel</vendor>
+      <maxphysaddr mode='emulate' bits='46'/>
       <features>
         <pae/>
         <nonpae/>
-- 
2.37.1



More information about the libvir-list mailing list