On Sat, Oct 07, 2017 at 17:23 +0000, Theo de Raadt wrote: > > > > Now that we have an accurate tsc frequency, I would like to expose this > > > > information to userland via a sysctl. > > > > > > > > The diff below exposes the tsc frequency and if it is invariant. > > > > > > > > Cheers, > > > > Adam > > > > > > > > > > > Please ignore that diff, looks like i had some dregs from a older diff i > > > had been testing > > > > Yeah, I've renamed a few things and deliberately skipped the sysctl part > > so that we can test for regressions and don't mess with exposed interfaces > > if we need to back out. So I'd wait a few weeks for people to get it > > running on a variety of systems and report the fallout if any. > > The frequency can be found in dmesg. > > Is there a particular reason why a piece of software has to query it > with sysctl?
Adam will correct me if I'm wrong, but his idea was to provide clock emulation to the operating system running in userland (solo5/unikernel). Perhaps vmd can make use of this interface too.