kvmclock: count total_sleep_time when updating guest clock
authorJason Wang <jasowang@redhat.com>
Wed, 27 Jan 2010 11:13:49 +0000 (19:13 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 9 Feb 2010 17:20:15 +0000 (19:20 +0200)
Current kvm wallclock does not consider the total_sleep_time which could cause
wrong wallclock in guest after host suspend/resume. This patch solve
this issue by counting total_sleep_time to get the correct host boot time.

Cc: stable@kernel.org
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

No differences found