]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schemas: Allow zero <cpu/> for capabilities
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 26 May 2021 14:23:29 +0000 (16:23 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Jun 2021 08:41:22 +0000 (10:41 +0200)
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@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
docs/schemas/capability.rng

index fb8203ad6d63c15569dd227415e447835624a181..fcc262ae1a78f77d06ec1ef6604956a30e071429 100644 (file)
           <attribute name="num">
             <ref name="unsignedInt"/>
           </attribute>
-          <oneOrMore>
+          <zeroOrMore>
             <ref name="cpu"/>
-          </oneOrMore>
+          </zeroOrMore>
         </element>
       </optional>
     </element>