]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cgroup: Update XML Schema for new entries.
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>
Tue, 8 Feb 2011 06:58:25 +0000 (14:58 +0800)
committerEric Blake <eblake@redhat.com>
Tue, 8 Feb 2011 18:25:33 +0000 (11:25 -0700)
Update XML Schema for new entries.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
docs/schemas/domain.rng

index 53c07fd206a917bd9a8cbffbf7ffde5cab57501f..7fe66e3c26f5febe896f48d60d7ff438289fa9da 100644 (file)
         </element>
       </optional>
 
+      <!-- The Blkio cgroup related tunables would go in the blkiotune -->
+      <optional>
+        <element name="blkiotune">
+          <!-- I/O weight the VM can use -->
+          <optional>
+            <element name="weight">
+              <ref name="weight"/>
+            </element>
+          </optional>
+        </element>
+      </optional>
+
       <!-- All the memory/swap related tunables would go in the memtune -->
       <optional>
         <element name="memtune">
        Type library
 
        Our unsignedInt doesn't allow a leading '+' in its lexical form
-       A domain name shoul be made of ascii, numbers, _-+ and is non-empty
+       A domain name should be made of ascii, numbers, _-+ and is non-empty
        UUID currently allows only the 32 characters strict syntax
        memoryKB request at least 4Mbytes though Xen will grow bigger if too low
+       weight currently is in range [100, 1000]
     -->
   <define name="unsignedInt">
     <data type="unsignedInt">
       <param name="minInclusive">-1</param>
     </data>
   </define>
+  <define name="weight">
+    <data type="unsignedInt">
+      <param name="pattern">[0-9]+</param>
+      <param name="minInclusive">100</param>
+      <param name="maxInclusive">1000</param>
+    </data>
+  </define>
   <define name="memoryKB">
     <data type="unsignedInt">
       <param name="pattern">[0-9]+</param>