]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schemas: Allow cache attribute for bandwidth element for HMAT
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 7 Jul 2021 14:00:49 +0000 (16:00 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 8 Jul 2021 14:28:30 +0000 (16:28 +0200)
Turns out, when introducing HMAT support in v6.6.0-rc1~249
I've forgot to allow "cache" attribute for <bandwidth/> element
in RNG. It's parsed and formatted, but schema does not allow it.

Fixes: a89bbbac86383a10be0cec5a93feb7ed820871eb
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1980162
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
docs/schemas/cputypes.rng
tests/qemuxml2argvdata/numatune-hmat.x86_64-latest.args
tests/qemuxml2argvdata/numatune-hmat.xml

index 77c8fa783b4e3c9310d96cd73ca02cbcb039d249..056e66e1b4ca6e7e2de462abd28bda6c1e080dba 100644 (file)
             <attribute name="target">
               <ref name="unsignedInt"/>
             </attribute>
+            <optional>
+              <attribute name="cache">
+                <ref name="unsignedInt"/>
+              </attribute>
+            </optional>
             <attribute name="type">
               <choice>
                 <value>access</value>
index 1ec2e15095278dd6080efd41cf8b15ebfc59eb9b..54ab91b09c1bb46e4af88497b947d2d6cdbaf3fa 100644 (file)
@@ -30,6 +30,7 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest/.config \
 -numa hmat-lb,initiator=0,target=0,hierarchy=memory,data-type=access-latency,latency=5 \
 -numa hmat-lb,initiator=0,target=0,hierarchy=first-level,data-type=access-latency,latency=10 \
 -numa hmat-lb,initiator=0,target=0,hierarchy=memory,data-type=access-bandwidth,bandwidth=204800K \
+-numa hmat-lb,initiator=0,target=0,hierarchy=first-level,data-type=access-bandwidth,bandwidth=208896K \
 -numa hmat-cache,node-id=0,size=10K,level=1,associativity=direct,policy=write-back,line=8 \
 -uuid c7a5fdb2-cdaf-9455-926a-d65c16db1809 \
 -display none \
index 51ff3c34253e372b4dcc9f4ff0dd7fc024e861b8..a64d2ef3e29de0d7bfe1032d9a228868001c587c 100644 (file)
@@ -30,6 +30,7 @@
         <latency initiator='0' target='0' type='access' value='5'/>
         <latency initiator='0' target='0' cache='1' type='access' value='10'/>
         <bandwidth initiator='0' target='0' type='access' value='204800' unit='KiB'/>
+        <bandwidth initiator='0' target='0' cache='1' type='access' value='208896' unit='KiB'/>
       </interconnects>
     </numa>
   </cpu>