From f2ae8abf1fa003e7ec6ee22cc3871924422a01d0 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Tue, 24 Jun 2014 18:55:11 -0300 Subject: 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 Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- monitor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 5718d0b60a..799131bd01 100644 --- a/monitor.c +++ b/monitor.c @@ -5441,3 +5441,10 @@ QemuOptsList qemu_mon_opts = { { /* end of list */ } }, }; + +#ifndef TARGET_I386 +void qmp_rtc_reset_reinjection(Error **errp) +{ + error_set(errp, QERR_FEATURE_DISABLED, "rtc-reset-reinjection"); +} +#endif -- cgit v1.2.3-55-g7522