]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/pvclock: Zero last_value on resume
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 25 Oct 2010 23:53:46 +0000 (16:53 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:45:05 +0000 (12:45 -0700)
commit132a10e37130f769046d68fa36306c940c981869
tree01964c5fa9f889a320f697494249ff4d7eb7e3e4
parent267be76c7ce0edf9e443c0654786bf2221dcadd6
x86/pvclock: Zero last_value on resume

commit e7a3481c0246c8e45e79c629efd63b168e91fcda upstream.

If the guest domain has been suspend/resumed or migrated, then the
system clock backing the pvclock clocksource may revert to a smaller
value (ie, can be non-monotonic across the migration/save-restore).

Make sure we zero last_value in that case so that the domain
continues to see clock updates.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/pvclock.h
arch/x86/kernel/pvclock.c
arch/x86/xen/time.c