[libvirt] [PATCH 1/5 v3] numatune: Define xml schema

Osier Yang jyang at redhat.com
Fri Jun 17 10:22:54 UTC 2011


Example XML:

<numatune>
  <memory mode="strict" nodeset="0-10,^4"/>
</numatune>
---
 docs/schemas/domain.rng |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index b71778b..6de024e 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -387,6 +387,26 @@
           </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">
-- 
1.7.4




More information about the libvir-list mailing list