qemu-patch-raspberry4/hw/timer
Junlian Bell 3cf294eebc MC146818 RTC: coordinate guest clock base to destination host after migration
qemu tracks guest time based on vector [base_rtc, last_update], in which
last_update stands for a monotonic tick which is actually uptime of the
host.
according to rtc implementation codes of recent releases and upstream,
after
migration, the time base vector [base_rtc, last_update] isn't updated to
coordinate with the destionation host, ie. qemu doesnt update last_update
to
uptime of the destination host.
what problem have we got because of this bug? after migration, guest time
may
jump back to several days ago, that will make some critical business
applications,
such as lotus notes, malfunction.
this patch is trying to fix the problem. first, when vmsave in progress,
we
rtc_update_time to refresh time stamp in cmos array, then during
vmrestore,
we rtc_set_time to update qemu base_rtc and last_update variable according
to time
stamp in cmos array.

Signed-off-by: Junlian Bell <zhongjun@sangfor.com.cn>
Message-Id: <20160926124101.2364-1-zhongjun@sangfor.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-10-04 10:00:25 +02:00
..
a9gtimer.c Fix some typos found by codespell 2016-05-18 15:04:27 +03:00
allwinner-a10-pit.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
arm_mptimer.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
arm_timer.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
aspeed_timer.c hw/timer: Add value matching support to aspeed_timer 2016-06-17 15:23:51 +01:00
cadence_ttc.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
digic-timer.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
ds1338.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
etraxfs_timer.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
exynos4210_mct.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
exynos4210_pwm.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
exynos4210_rtc.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
grlib_gptimer.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
hpet.c hw/timer: Revert "hpet: inverse polarity when pin above ISA_NUM_IRQS" 2016-04-08 00:07:43 +02:00
i8254.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
i8254_common.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
imx_epit.c imx: Use 'const char', not 'char const' 2016-09-22 18:13:09 +01:00
imx_gpt.c imx: Use 'const char', not 'char const' 2016-09-22 18:13:09 +01:00
lm32_timer.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
m48t59.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
Makefile.objs hw/mips: implement GIC Interval Timer 2016-07-12 09:10:09 +01:00
mc146818rtc.c MC146818 RTC: coordinate guest clock base to destination host after migration 2016-10-04 10:00:25 +02:00
milkymist-sysctl.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
mips_gictimer.c hw/mips: implement GIC Interval Timer 2016-07-12 09:10:09 +01:00
omap_gptimer.c The only 64bit parameter of muldiv64() is the first one. 2016-06-07 18:02:49 +03:00
omap_synctimer.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
pl031.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
puv3_ost.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
pxa2xx_timer.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
sh_timer.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
slavio_timer.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
stm32f2xx_timer.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
twl92230.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
xilinx_timer.c hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00