]> 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)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:04 +0000 (11:58 -0700)
commitac9a0f1a28f560f2c65ee6e2ae5b750fac9f14cb
tree3375fcefd5989b51f8b1aeedde97981d0e4ffe95
parentce7f2cfe2de74e8bc53a04c63fd61696b89ffe3e
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
arch/x86/include/asm/pvclock.h
arch/x86/kernel/pvclock.c
arch/x86/xen/time.c