[PATCH v1 02/10] schemas: Allow zero <cpu/> for capabilities

Michal Privoznik mprivozn at redhat.com
Mon May 31 08:36:03 UTC 2021


It may happen that a NUMA node has no CPUs associated with it. We
allow this for domains since v6.6.0-rc1~250. Let's update our
capabilities schema to match that.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 docs/schemas/capability.rng | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/schemas/capability.rng b/docs/schemas/capability.rng
index fb8203ad6d..fcc262ae1a 100644
--- a/docs/schemas/capability.rng
+++ b/docs/schemas/capability.rng
@@ -168,9 +168,9 @@
           <attribute name="num">
             <ref name="unsignedInt"/>
           </attribute>
-          <oneOrMore>
+          <zeroOrMore>
             <ref name="cpu"/>
-          </oneOrMore>
+          </zeroOrMore>
         </element>
       </optional>
     </element>
-- 
2.31.1




More information about the libvir-list mailing list