[PATCH v2 03/11] Adds xml entries for memory tunables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Nikunj A. Dadhania <nikunj@xxxxxxxxxxxxxxxxxx>

The patch adds xml entries to the domain.rng file.

v2:
+ Fix typo min_guarantee

Signed-off-by: Nikunj A. Dadhania <nikunj@xxxxxxxxxxxxxxxxxx>
---
 docs/schemas/domain.rng |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index ccb8cf3..d75254c 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -299,6 +299,37 @@
           </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>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]