]> xenbits.xensource.com Git - libvirt.git/commitdiff
Adds xml entries for memory tunables in domain schema
authorNikunj A. Dadhania <nikunj@linux.vnet.ibm.com>
Tue, 12 Oct 2010 14:06:55 +0000 (16:06 +0200)
committerDaniel Veillard <veillard@redhat.com>
Tue, 12 Oct 2010 17:26:09 +0000 (19:26 +0200)
The patch adds xml entries to the domain.rng file.

v2:
+ Fix typo min_guarantee

docs/schemas/domain.rng

index 2e0457bb32439d15c11726e957d7dd8d9104e6ce..6cbace07e1a1a6750a1fdae3d8f79e61baa0cbff 100644 (file)
           </optional>
         </element>
       </optional>
+
+      <!-- All the memory/swap related tunables would go in the memtune -->
+      <optional>
+       <element name="memtune">
+         <!-- Maximum memory the VM can use -->
+         <optional>
+           <element name="hard_limit">
+             <ref name="memoryKB"/>
+           </element>
+         </optional>
+         <!-- Minimum memory ascertained for the VM during contention -->
+         <optional>
+           <element name="soft_limit">
+             <ref name="memoryKB"/>
+           </element>
+         </optional>
+         <!-- Minimum amount of memory required to start the VM -->
+         <optional>
+           <element name="min_guarantee">
+             <ref name="memoryKB"/>
+           </element>
+         </optional>
+         <!-- Maximum swap area the VM can use -->
+         <optional>
+           <element name="swap_hard_limit">
+             <ref name="memoryKB"/>
+           </element>
+         </optional>
+       </element>
+      </optional>
+
       <optional>
         <element name="vcpu">
           <optional>