]> xenbits.xensource.com Git - libvirt.git/commitdiff
numatune: Define XML schema
authorOsier Yang <jyang@redhat.com>
Mon, 20 Jun 2011 07:13:25 +0000 (15:13 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 20 Jun 2011 07:13:25 +0000 (15:13 +0800)
Example XML:

<numatune>
  <memory mode="strict" nodeset="0-10,^4"/>
</numatune>

Please enter the commit message for your changes. Lines starting

docs/schemas/domain.rng

index b71778bda369ca0638abe856d17a7c5e27a5cb03..6de024e3ee372ad9784aa7766d294fa205aa05f9 100644 (file)
           </zeroOrMore>
         </element>
       </optional>
+
+      <!-- All the NUMA related tunables would go in the numatune -->
+      <optional>
+        <element name="numatune">
+          <optional>
+            <element name="memory">
+              <attribute name="mode">
+                <choice>
+                  <value>strict</value>
+                  <value>preferred</value>
+                  <value>interleave</value>
+                </choice>
+              </attribute>
+              <attribute name="nodeset">
+                <ref name="cpuset"/>
+              </attribute>
+            </element>
+          </optional>
+        </element>
+      </optional>
     </interleave>
   </define>
   <define name="clock">