]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Issue rtc-reset-reinjection command after guest-set-time
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Aug 2014 12:28:24 +0000 (14:28 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 20 Aug 2014 12:20:05 +0000 (14:20 +0200)
commitb606bbb416e264466a3f5af62a13163e432d0f49
treec1ef6e476eafb6588b42fa6ee18be1a67b02b93e
parent970ac2a0fe19eb6088fb4cd8b982014ee9b143dc
qemu: Issue rtc-reset-reinjection command after guest-set-time

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

An advice appeared there on the qemu-devel list [1]. When a domain is
suspended and then resumed guest kernel is not aware of this. So we've
introduced virDomainSetTime API that resets the time within guest
using qemu-ga. On the other hand, qemu itself is trying to make RTC
beat faster to catch the difference. But if we don't tell qemu that
guest's time was reset via the other method, both mechanisms are
applied resulting in again wrong guest time. In order to avoid summing
both corrections we need to tell qemu that it should not use the RTC
injection if the guest time is set via guest agent.

1: http://www.mail-archive.com/qemu-devel@nongnu.org/msg236435.html

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
tests/qemumonitorjsontest.c