schema: domain: Allow interleaving of subelements of 'memtune'

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2022-10-13 16:33:11 +02:00
parent 123a52fe07
commit 8b2b71d899

View File

@ -956,30 +956,32 @@
<!-- All the memory/swap related tunables would go in the memtune --> <!-- All the memory/swap related tunables would go in the memtune -->
<define name="memtune"> <define name="memtune">
<element name="memtune"> <element name="memtune">
<!-- Maximum memory the VM can use --> <interleave>
<optional> <!-- Maximum memory the VM can use -->
<element name="hard_limit"> <optional>
<ref name="scaledInteger"/> <element name="hard_limit">
</element> <ref name="scaledInteger"/>
</optional> </element>
<!-- Minimum memory ascertained for the VM during contention --> </optional>
<optional> <!-- Minimum memory ascertained for the VM during contention -->
<element name="soft_limit"> <optional>
<ref name="scaledInteger"/> <element name="soft_limit">
</element> <ref name="scaledInteger"/>
</optional> </element>
<!-- Minimum amount of memory required to start the VM --> </optional>
<optional> <!-- Minimum amount of memory required to start the VM -->
<element name="min_guarantee"> <optional>
<ref name="scaledInteger"/> <element name="min_guarantee">
</element> <ref name="scaledInteger"/>
</optional> </element>
<!-- Maximum swap area the VM can use --> </optional>
<optional> <!-- Maximum swap area the VM can use -->
<element name="swap_hard_limit"> <optional>
<ref name="scaledInteger"/> <element name="swap_hard_limit">
</element> <ref name="scaledInteger"/>
</optional> </element>
</optional>
</interleave>
</element> </element>
</define> </define>