Skip to content
Commit 923de3cf authored by Jason Wang's avatar Jason Wang Committed by Avi Kivity
Browse files

kvmclock: count total_sleep_time when updating guest clock



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: default avatarJason Wang <jasowang@redhat.com>
Acked-by: default avatarGlauber Costa <glommer@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent c93d89f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment