]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:41 +0000 (12:46 -0400)
commit7d328bebd36bd80ade9e15e7bd12349b607aa97b
treeaee39695d5f6cc0fcde6024579a99c9d11653d1c
parent021a4a6c35951860fd978badd6018ccf4878db9e
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: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/x86/include/asm/pvclock.h
arch/x86/kernel/pvclock.c
arch/x86/xen/time.c