]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
cputune: Add XML schema for cputune xml
authorOsier Yang <jyang@redhat.com>
Tue, 29 Mar 2011 13:01:57 +0000 (21:01 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 29 Mar 2011 14:13:45 +0000 (22:13 +0800)
v1 - v2:
  * Remove upper limit of cpu shares. (Suggested by Matthias Bottle)

docs/schemas/domain.rng

index 30f673f3add9d095d6ff0f047ae240764d7c18c4..0fbf326886ad241d45c1c303c9a91320997ba8c8 100644 (file)
           <ref name="countCPU"/>
         </element>
       </optional>
+
+      <!-- All the cpu related tunables would go in the cputune -->
+      <optional>
+        <element name="cputune">
+          <optional>
+            <element name="shares">
+              <ref name="cpushares"/>
+            </element>
+          </optional>
+          <zeroOrMore>
+            <element name="vcpupin">
+              <attribute name="vcpu">
+                <ref name="vcpuid"/>
+              </attribute>
+              <attribute name="cpuset">
+                <ref name="cpuset"/>
+              </attribute>
+            </element>
+          </zeroOrMore>
+        </element>
+      </optional>
     </interleave>
   </define>
   <define name="clock">
       <param name="minInclusive">1</param>
     </data>
   </define>
+  <define name="vcpuid">
+    <data type="unsignedShort">
+      <param name="pattern">[0-9]+</param>
+    </data>
+  </define>
+  <define name="cpushares">
+    <data type="unsignedInt">
+      <param name="pattern">[0-9]+</param>
+    </data>
+   </define>
   <define name="hostName">
     <data type="string">
       <param name="pattern">[a-zA-Z0-9\.\-]+</param>