]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refresh RTC adjustment on qemuProcessReconnect
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 29 Apr 2016 16:01:39 +0000 (18:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 3 May 2016 09:44:13 +0000 (11:44 +0200)
commit6ee78d334a9e8e841880d6931892a8ebaa73faeb
tree930ce39a857ee9693d7329b99e96fa6b5d8c091f
parentb1e2f2d84d149e141f86f286a243536243862b55
qemu: Refresh RTC adjustment on qemuProcessReconnect

https://bugzilla.redhat.com/show_bug.cgi?id=1139766

Thing is, for some reasons you can have your domain's RTC to be
in something different than UTC. More weirdly, it's not only time
zone what you can shift it of, but an arbitrary value. So, if
domain is configured that way, libvirt will correctly put it onto
qemu cmd line and moreover track it as this offset changes during
domain's life time (e.g. because guest OS decides the best thing
to do is set new time to RTC). Anyway, they way in which this
tracking is implemented is events. But we've got a problem if
change in guest's RTC occurs and the daemon is not running. The
event is lost and we end up reporting invalid value in domain
XML. Therefore, when the daemon is starting up again and it is
reconnecting to all running domains, re-fetch their RTC so the
correct offset value can be computed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_process.c