Re: [PATCH RFC v3 3/6] Update XML Schema for new entries

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

 



On 07/18/2011 04:41 AM, Wen Congyang wrote:
> ---
>  docs/schemas/domain.rng |   26 +++++++++++++++++++++++++-
>  1 files changed, 25 insertions(+), 1 deletions(-)
> 
> diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
> index 8a4e3fe..5f8151d 100644
> --- a/docs/schemas/domain.rng
> +++ b/docs/schemas/domain.rng
> @@ -388,6 +388,16 @@
>                <ref name="cpushares"/>
>              </element>
>            </optional>
> +          <optional>
> +            <element name="period">
> +              <ref name="cpuperiod"/>
> +            </element>
> +          </optional>
> +          <optional>
> +            <element name="quota">
> +              <ref name="cpuquota"/>
> +            </element>
> +          </optional>
>            <zeroOrMore>
>              <element name="vcpupin">
>                <attribute name="vcpu">

Yes, this is exactly the interface we are looking for.

> @@ -2401,7 +2411,21 @@
>      <data type="unsignedInt">
>        <param name="pattern">[0-9]+</param>
>      </data>
> -   </define>
> +  </define>
> +  <define name="cpuperiod">
> +    <data type="unsignedLong">
> +      <param name="pattern">[0-9]+</param>
> +      <param name="minInclusive">1000</param>
> +      <param name="maxInclusive">1000000</param>
> +    </data>
> +  </define>
> +  <define name="cpuquota">
> +    <data type="long">
> +      <param name="pattern">-?[0-9]+</param>
> +      <param name="maxInclusive">18446744073709551</param>
> +      <param name='minInclusive'>-1</param>
> +    </data>
> +  </define>
>    <define name="PortNumber">
>      <data type="short">
>        <param name="minInclusive">-1</param>

-- 
Adam Litke
IBM Linux Technology Center

--
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]