]> git.ipfire.org Git - thirdparty/libvirt.git/commit
schema: Fix guest timer specification schema according to the docs
authorPeter Krempa <pkrempa@redhat.com>
Tue, 4 Feb 2014 18:02:04 +0000 (19:02 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 10 Feb 2014 10:09:14 +0000 (11:09 +0100)
commitbbd392ff86249434ca63bb5977d2b1bd2d72a538
treeec85a4446a8a890404ab2cc281a905d938604b41
parentf88a3d9b0c7a04ce31c9dda813c7dbd40ea262e9
schema: Fix guest timer specification schema according to the docs

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

Additionally the attributes of the <catchup> element for
tickpolicy='catchup' are optional according to the parsing code. Express
this in the XML and fix a spurious space added while formatting the
<catchup> element and add tests for it.
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-clock-catchup.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-clock-catchup.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c