Re: [libvirt] [PATCHv4 6/9] conf: Enforce ranges on cputune variables

2013-03-26 Thread Peter Krempa
On 03/26/13 01:19, Laine Stump wrote: On 03/15/2013 11:26 AM, Peter Krempa wrote: The limits are documented at http://libvirt.org/formatdomain.html#elementsCPUTuning . Enforce them when going through XML parsing in addition to being enforced by the API. What's the rationale for doing this

Re: [libvirt] [PATCHv4 6/9] conf: Enforce ranges on cputune variables

2013-03-25 Thread Laine Stump
On 03/15/2013 11:26 AM, Peter Krempa wrote: The limits are documented at http://libvirt.org/formatdomain.html#elementsCPUTuning . Enforce them when going through XML parsing in addition to being enforced by the API. What's the rationale for doing this validation during the post-parse rather

[libvirt] [PATCHv4 6/9] conf: Enforce ranges on cputune variables

2013-03-15 Thread Peter Krempa
The limits are documented at http://libvirt.org/formatdomain.html#elementsCPUTuning . Enforce them when going through XML parsing in addition to being enforced by the API. --- Notes: Version 4: - changed error from VIR_ERR_XML_ERROR to VIR_ERR_CONFIG_UNSUPPORTED Version 3: - new