Change time policy to eliminate time drift
At the moment we use the following structure: <clock offset='utc'> <timer name='hpet' present='no'/> </clock> To elimintate time drift between virtual instances we are changing structure to: <clock offset='utc'> <timer name='rtc' tickpolicy='catchup' track=‘guest'> <catchup threshold='123' slew='120' limit='10000’/> </timer> <timer name='pit' tickpolicy='delay'/> <timer name='hpet' present='no'/> </clock> Change-Id: I3e00e7cfb11584d484665a9872ee59318e7209e7 Closes-Bug: 1394546
This commit is contained in:
parent
a8f3d6eeab
commit
a6e183936e
|
@ -160,6 +160,15 @@ class LibvirtXMLBuilder(object):
|
||||||
node_xml.memory(str(node.memory * 1024), unit='KiB')
|
node_xml.memory(str(node.memory * 1024), unit='KiB')
|
||||||
|
|
||||||
node_xml.clock(offset='utc')
|
node_xml.clock(offset='utc')
|
||||||
|
with node_xml.clock.timer(name='rtc',
|
||||||
|
tickpolicy='catchup', track='guest'):
|
||||||
|
node_xml.catchup(
|
||||||
|
threshold='123',
|
||||||
|
slew='120',
|
||||||
|
limit='10000')
|
||||||
|
node_xml.clock.timer(
|
||||||
|
name='pit',
|
||||||
|
tickpolicy='delay')
|
||||||
node_xml.clock.timer(
|
node_xml.clock.timer(
|
||||||
name='hpet',
|
name='hpet',
|
||||||
present='yes' if self.driver.hpet else 'no')
|
present='yes' if self.driver.hpet else 'no')
|
||||||
|
|
Loading…
Reference in New Issue