public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 0/2] xen: maintain an accurate persistent clock in more cases
@ 2013-05-28 18:22 David Vrabel
  2013-05-28 18:22 ` [PATCH 1/2] x86/xen: sync the CMOS RTC as well as the Xen wallclock David Vrabel
  2013-05-28 18:22 ` [PATCH 2/2] x86/xen: sync the wallclock when the system time changes David Vrabel
  0 siblings, 2 replies; 14+ messages in thread
From: David Vrabel @ 2013-05-28 18:22 UTC (permalink / raw)
  To: xen-devel; +Cc: David Vrabel, Konrad Rzeszutek Wilk, John Stultz, linux-kernel

The kernel has limited support for updating the persistent clock or
RTC when NTP is synced.  This has the following limitations:

* The persistent clock is not updated on step changes.  This leaves a
  window where it will be incorrect (while NTP resyncs).

* Xen guests use the Xen wallclock as their persistent clock.  dom0
  maintains this clock so it is persistent for domUs and not dom0
  itself.

These series fixes the above limitations and depends on "x86: increase
precision of x86_platform.get/set_wallclock()" which was previously
posted.

Changes since v1:

Reworked to use the pvclock_gtod notifier to sync the wallclock (this
looked similar to what a KVM host does).  update_persistent_clock()
will now only update the CMOS RTC.

David

[1] http://lists.xen.org/archives/html/xen-devel/2013-05/msg01402.html


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-06-04  1:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-28 18:22 [PATCHv2 0/2] xen: maintain an accurate persistent clock in more cases David Vrabel
2013-05-28 18:22 ` [PATCH 1/2] x86/xen: sync the CMOS RTC as well as the Xen wallclock David Vrabel
2013-05-28 19:01   ` John Stultz
2013-05-28 19:05     ` Konrad Rzeszutek Wilk
2013-05-28 18:22 ` [PATCH 2/2] x86/xen: sync the wallclock when the system time changes David Vrabel
2013-05-28 18:53   ` John Stultz
2013-05-29  7:42     ` [Xen-devel] " Jan Beulich
2013-05-29  9:42     ` David Vrabel
2013-06-04  1:22       ` Marcelo Tosatti
2013-05-29  7:39   ` [Xen-devel] " Jan Beulich
2013-05-29  9:48     ` David Vrabel
2013-05-29  7:47   ` Jan Beulich
2013-05-29  9:37     ` David Vrabel
2013-05-29 19:58       ` John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox