[libvirt] [PATCHv3 1/3] schema: Fix guest timer specification schema according to the docs

Eric Blake eblake at redhat.com
Fri Feb 7 20:30:37 UTC 2014


On 02/07/2014 07:21 AM, Peter Krempa wrote:
> According to the documentation describing various tunables for domain
> timers not all the fields are supported by all the driver types. Express
> these in the RNG:
> 
> - rtc, platform: Only these support the "track" attribute.
> - tsc: only one to support "frequency" and "mode" attributes
> - hpet, pit: tickpolicy/catchup attribute/element
> - kvmclock: no extra attributes are supported
> ---
>  docs/schemas/domaincommon.rng | 153 +++++++++++++++++++++++++-----------------
>  1 file changed, 93 insertions(+), 60 deletions(-)
> 
> +        <optional>
> +          <element name="catchup">
> +            <optional>
> +              <attribute name="threshold">
> +                <ref name="unsignedInt"/>
> +              </attribute>
> +              <attribute name="slew">
> +                <ref name="unsignedInt"/>
> +              </attribute>
> +              <attribute name="limit">
> +                <ref name="unsignedInt"/>
> +              </attribute>

Are all three attributes mandatory as a group?  Or is each attribute
optional in isolation?  The C code says the latter, which means this
part has to be written:

<element name='catchup'>
  <optional>
    <attribute name='threshold'>...
  </optional>
  <optional>
    <attribute name='slew'>...

and so on.

ACK with that fix; it might also be nice to add a testsuite addition
that proves we handle 'threshold' without also having to specify 'slew'
and 'limit'.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140207/b3a67735/attachment-0001.sig>


More information about the libvir-list mailing list