freebsd-dev/sys/i386
Adrian Chadd fd27593538 Fix the Xen TOD update when the hypervisor wall clock is nudged.
The "wall clock" in the current code is actually the hypervisor start time.
The time of day is the "start time" plus the hypervisor "uptime".

Large enough bumps in the dom0 clock lead to a hypervisor "bump" which is
implemented as a bump in the start time, not the uptime. The clock.c routines
were reading in the hypervisor start time and then using this as the TOD.
This meant that any hypervisor time bump would cause the FreeBSD DomU to
set its TOD to the hypervisor start time, rather than the actual TOD.

This fix is a bit hacky and some reshuffling should be done later on
to clarify what is going on. I've left the wall clock code alone.
(The code which updates shadow_tv and shadow_tv_version.)
A new routine adds the uptime to the shadow_tv, which is then used to
update the TOD.

I've included some debugging so it is obvious when the clock is nudged.

PR:	135008
2009-05-29 13:43:21 +00:00
..
acpica We don't need d_thread_t for cross-branch portability here anymore. 2009-05-20 16:47:40 +00:00
bios Some minor style changes: 2009-05-20 16:29:22 +00:00
compile
conf Trim the default set of device hints on i386 and amd64: 2009-05-14 21:53:35 +00:00
cpufreq Remove unused variables. 2009-05-12 22:11:02 +00:00
i386 Don't bother reading the initial value of the machine check banks during 2009-05-20 16:11:22 +00:00
ibcs2 Regenerate system call tables to use SVN ids. 2009-05-08 20:16:04 +00:00
include Migrate the Xen hypervisor clock reading routines into something 2009-05-29 13:36:06 +00:00
isa Rename statclock_disable variable to atrtcclock_disable that it actually is, 2009-05-03 17:47:21 +00:00
linux Somewhere between 2.6.23 and 2.6.27, Linux added SOCK_CLOEXEC and 2009-05-16 18:48:41 +00:00
pci Add a read-only sysctl hw.pci.mcfg to mirror the tunable by the same name. 2009-05-18 21:47:32 +00:00
svr4 Change some movl's to mov's. Newer GAS no longer accept 'movl' instructions 2009-01-31 11:37:21 +00:00
xbox In keeping with style(9)'s recommendations on macros, use a ';' 2008-03-16 10:58:09 +00:00
xen Fix the Xen TOD update when the hypervisor wall clock is nudged. 2009-05-29 13:43:21 +00:00
Makefile Update entries for building tags. 2007-05-13 18:21:54 +00:00