From ef1d5ee84bbbd3583a373898ed167060adc068e1 Mon Sep 17 00:00:00 2001 Message-Id: From: Peter Krempa Date: Mon, 10 Feb 2014 14:02:47 +0100 Subject: [PATCH] schema: Fix guest timer specification schema according to the docs https://bugzilla.redhat.com/show_bug.cgi?id=1056205 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. (cherry picked from commit bbd392ff86249434ca63bb5977d2b1bd2d72a538) Conflicts: tests/qemuxml2argvtest.c - HPET-off test not yet enabled Tweaks: tests/qemuxml2argvdata/qemuxml2argv-clock-catchup.args: - QEMU_AUDIO_DRV is not formatted downstream Signed-off-by: Jiri Denemark --- docs/schemas/domaincommon.rng | 157 +++++++++++++-------- src/conf/domain_conf.c | 2 +- .../qemuxml2argv-clock-catchup.args | 5 + .../qemuxml2argv-clock-catchup.xml | 37 +++++ tests/qemuxml2argvtest.c | 1 + tests/qemuxml2xmltest.c | 1 + 6 files changed, 142 insertions(+), 61 deletions(-) create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-clock-catchup.args create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-clock-catchup.xml diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 91b36e2..f75bf78 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -791,54 +791,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 + + + @@ -850,20 +864,43 @@ - - - - - - - - + + + + + + + delay + merge + discard + - - + + + + catchup - - + + + + + + + + + + + + + + + + + + + + +