From: Peter Krempa Date: Tue, 4 Feb 2014 18:02:04 +0000 (+0100) Subject: schema: Fix guest timer specification schema according to the docs X-Git-Tag: v1.2.2-rc1~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbd392ff86249434ca63bb5977d2b1bd2d72a538;p=thirdparty%2Flibvirt.git 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 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 element and add tests for it. --- diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 7f55f24fc0..63e02e4b14 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -857,54 +857,68 @@ - - - platform - hpet - kvmclock - pit - rtc - tsc - - - - - - boot - guest - wall - - - - - - - delay - catchup - merge - discard - - - - - - - - - - - - - - - auto - native - emulate - paravirt - smpsafe - - - + + + + + platform + rtc + + + + + + boot + guest + wall + + + + + + + + + + tsc + + + + + + + + + + + + + auto + native + emulate + paravirt + smpsafe + + + + + + + + hpet + pit + + + + + + + + + kvmclock + + + @@ -916,20 +930,43 @@ - - - - - - - - + + + + + + + delay + merge + discard + - - + + + + catchup - - + + + + + + + + + + + + + + + + + + + + +