[libvirt] [PATCH 1/8 v2] cputune: Add xml schema for cputune xml
Daniel Veillard
veillard at redhat.com
Tue Mar 29 09:09:23 UTC 2011
On Tue, Mar 29, 2011 at 04:48:30PM +0800, Osier Yang wrote:
> Sample of cputune xml:
> <cputune>
> <shares>2048</shares>
> <vcpupin vcpu='0' cpuset='0-4,^3'/>
> <vcpupin vcpu='1' cpuset='1,2'/>
> </cputune>
>
> * docs/schemas/domain.rng
> ---
> 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 30f673f..0fbf326 100644
> --- a/docs/schemas/domain.rng
> +++ b/docs/schemas/domain.rng
> @@ -366,6 +366,27 @@
> <ref name="countCPU"/>
> </element>
> </optional>
> +
> + <!-- All the cpu related tunables would go in the cputune -->
> + <optional>
> + <element name="cputune">
> + <optional>
> + <element name="shares">
> + <ref name="cpushares"/>
> + </element>
> + </optional>
> + <zeroOrMore>
> + <element name="vcpupin">
> + <attribute name="vcpu">
> + <ref name="vcpuid"/>
> + </attribute>
> + <attribute name="cpuset">
> + <ref name="cpuset"/>
> + </attribute>
> + </element>
> + </zeroOrMore>
> + </element>
> + </optional>
> </interleave>
> </define>
> <define name="clock">
> @@ -2198,6 +2219,16 @@
> <param name="minInclusive">1</param>
> </data>
> </define>
> + <define name="vcpuid">
> + <data type="unsignedShort">
> + <param name="pattern">[0-9]+</param>
> + </data>
> + </define>
> + <define name="cpushares">
> + <data type="unsignedInt">
> + <param name="pattern">[0-9]+</param>
> + </data>
> + </define>
> <define name="hostName">
> <data type="string">
> <param name="pattern">[a-zA-Z0-9\.\-]+</param>
Okay, with the doc about the proportional ratios and since it also
makes sense for ESX, I remove my objection for cpushare :-)
Once the other few nits are fixed, please push.
Matthias, if you have a chance to look at ESX support it's welcome
even if a bit late in the process for 0.9.0,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list