]> git.proxmox.com Git - mirror_qemu.git/commit - monitor.c
mc146818rtc: add rtc-reset-reinjection QMP command
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 24 Jun 2014 21:55:11 +0000 (18:55 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Jun 2014 15:59:35 +0000 (18:59 +0300)
commitf2ae8abf1fa003e7ec6ee22cc3871924422a01d0
treeb7c7f3bd2345af11289f489b939f544924070de8
parentfa118d1f8be40860469e8e23745d0202bdf229ba
mc146818rtc: add rtc-reset-reinjection QMP command

It is necessary to reset RTC interrupt reinjection backlog if
guest time is synchronized via a different mechanism, such as
QGA's guest-set-time command.

Failing to do so causes both corrections to be applied (summed),
resulting in an incorrect guest time.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/timer/mc146818rtc.c
monitor.c
qapi-schema.json
qmp-commands.hx