Update XML Schema for new entries. Signed-off-by: Gui Jianfeng <guijianfeng@xxxxxxxxxxxxxx> --- 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 53c07fd..a9391d3 100644 --- a/docs/schemas/domain.rng +++ b/docs/schemas/domain.rng @@ -306,6 +306,18 @@ </element> </optional> + <!-- The Blkio cgroup related tunables would go in the blkiotune --> + <optional> + <element name="blkiotune"> + <!-- I/O weight the VM can use --> + <optional> + <element name="weight"> + <ref name="WEIGHT"/> + </element> + </optional> + </element> + </optional> + <!-- All the memory/swap related tunables would go in the memtune --> <optional> <element name="memtune"> @@ -2150,6 +2162,7 @@ A domain name shoul be made of ascii, numbers, _-+ and is non-empty UUID currently allows only the 32 characters strict syntax memoryKB request at least 4Mbytes though Xen will grow bigger if too low + WEIGHT currently is in range [100, 1000] --> <define name="unsignedInt"> <data type="unsignedInt"> @@ -2182,6 +2195,13 @@ <param name="minInclusive">-1</param> </data> </define> + <define name="WEIGHT"> + <data type="unsignedInt"> + <param name="pattern">[0-9]+</param> + <param name="minInclusive">100</param> + <param name="maxInclusive">1000</param> + </data> + </define> <define name="memoryKB"> <data type="unsignedInt"> <param name="pattern">[0-9]+</param> -- 1.7.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list