kernel - Factor out TSC cputimer into common x86_64 code, use for vkernel.
commit7b21e5e4a2ba4592a7e27970929718a29bcbb614
authorImre Vadász <imre@vdsz.com>
Tue, 25 Dec 2018 15:02:38 +0000 (25 16:02 +0100)
committerImre Vadász <imre@vdsz.com>
Thu, 27 Dec 2018 09:20:35 +0000 (27 10:20 +0100)
tree8988c39a50e9d2e0c32f640f4d633a50ad5b65cb
parent108c361c483b6fb4bd179b04f6a7173de7125d3d
kernel - Factor out TSC cputimer into common x86_64 code, use for vkernel.

* This adds a command line flag -T to the vkernel, to force disable use of
  the TSC cputimer.

* By default the TSC will be used as a cputimer for the vkernel when the
  TSC is invariant and mpsync according to the hw.tsc_invariant and
  hw.tsc_mpsync sysctl values of the host.
share/man/man7/vkernel.7
sys/cpu/x86_64/misc/cputimer_tsc.c [new file with mode: 0644]
sys/platform/pc64/conf/files
sys/platform/pc64/isa/clock.c
sys/platform/vkernel64/conf/files
sys/platform/vkernel64/platform/init.c
sys/platform/vkernel64/platform/systimer.c