From 4603ea01055ac3b6bca8b6c6f9e265c00955ce8f Mon Sep 17 00:00:00 2001 From: Pavel Dovgalyuk Date: Mon, 1 Sep 2014 09:34:49 +0400 Subject: cpu: init vmstate for ticks and clock offset Ticks and clock offset used by CPU timers have to be saved in vmstate. But vmstate for these fields registered only in icount mode. Missing registration leads to breaking the continuity when vmstate is loaded. This patch introduces new initialization function which fixes this. Signed-off-by: Pavel Dovgalyuk Signed-off-by: Paolo Bonzini --- vl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 15aea95c57..5db0d08496 100644 --- a/vl.c +++ b/vl.c @@ -4334,6 +4334,7 @@ int main(int argc, char **argv, char **envp) qemu_spice_init(); #endif + cpu_ticks_init(); if (icount_opts) { if (kvm_enabled() || xen_enabled()) { fprintf(stderr, "-icount is not allowed with kvm or xen\n"); -- cgit v1.2.1