From 4ee2b31804f4d3477ee83bac28d9991afb0c3393 Mon Sep 17 00:00:00 2001 From: Laine Stump Date: Wed, 31 Mar 2010 13:03:54 -0400 Subject: [PATCH] Changes to clock timer XML to match final design. The clock timer XML is being updated in the following ways (based on further off-list discussion that was missed during the initial implementation): 1) 'wallclock' is changed to 'track', and the possible values are 'boot' (corresponds to old 'host'), 'guest', and 'wall'. 2) 'mode' has an additional value 'smpsafe' 3) when tickpolicy='catchup', there can be an optional sub-element of timer called 'catchup': Those three values are all longs, always optional, and if they are present, they are positive. Internally, 0 indicates "unspecified". * docs/schemas/domain.rng: updated RNG definition to account for changes * src/conf/domain_conf.h: change the C struct and enums to match changes. * src/conf/domain_conf.c: timer parse and format functions changed to handle the new selections and new element. * src/libvirt_private.syms: *TimerWallclock* changes to *TimerTrack* * src/qemu/qemu_conf.c: again, account for Wallclock --> Track change. --- docs/schemas/domain.rng | 24 ++++++++++- src/conf/domain_conf.c | 89 +++++++++++++++++++++++++++++++--------- src/conf/domain_conf.h | 26 ++++++++---- src/libvirt_private.syms | 4 +- src/qemu/qemu_conf.c | 17 ++++++-- 5 files changed, 126 insertions(+), 34 deletions(-) diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng index d80430153d..228665c6a4 100644 --- a/docs/schemas/domain.rng +++ b/docs/schemas/domain.rng @@ -344,10 +344,11 @@ - + - host + boot guest + wall @@ -361,6 +362,9 @@ + + + @@ -373,6 +377,7 @@ native emulate paravirt + smpsafe @@ -387,6 +392,21 @@ + + + + + + + + + + + + + + +