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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxx>
---

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





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux