Re: TSC timecounters

2017-10-07 Thread Adam Steen
On Sun, Oct 8, 2017 at 6:03 AM, Theo de Raadt wrote: > > 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. > > But why does it

Re: TSC timecounters

2017-10-07 Thread Theo de Raadt
> 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. But why does it matter if it knows the frequency?

Re: TSC timecounters

2017-10-07 Thread Mike Belopuhov
On Sat, Oct 07, 2017 at 17:23 +, 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, > > > >

Re: TSC timecounters

2017-10-07 Thread Theo de Raadt
> > > 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

Re: TSC timecounters

2017-10-07 Thread Mike Belopuhov
On Sat, Oct 07, 2017 at 10:27 +, Adam Steen wrote: > On Sat, Oct 7, 2017 at 5:52 PM, Adam Steen wrote: > > > On Fri, Oct 06, 2017 at 03:58:18PM +0200, Mike Belopuhov wrote: > > > Hi, > > > > > > An experimental change to use TSC as a timecounter source on a variety > >

Re: TSC timecounters

2017-10-07 Thread Adam Steen
On Sat, Oct 07, 2017 at 06:27:53PM +0800, Adam Steen wrote: > On Sat, Oct 7, 2017 at 5:52 PM, Adam Steen wrote: > > > On Fri, Oct 06, 2017 at 03:58:18PM +0200, Mike Belopuhov wrote: > > > Hi, > > > > > > An experimental change to use TSC as a timecounter source on a

Re: TSC timecounters

2017-10-07 Thread Adam Steen
On Sat, Oct 7, 2017 at 5:52 PM, Adam Steen wrote: > On Fri, Oct 06, 2017 at 03:58:18PM +0200, Mike Belopuhov wrote: > > Hi, > > > > An experimental change to use TSC as a timecounter source on a variety > > of modern Intel and AMD CPUs has been just committed and enabled

Re: TSC timecounters

2017-10-07 Thread Adam Steen
On Fri, Oct 06, 2017 at 03:58:18PM +0200, Mike Belopuhov wrote: > Hi, > > An experimental change to use TSC as a timecounter source on a variety > of modern Intel and AMD CPUs has been just committed and enabled on > OpenBSD/amd64 thanks to the work done by Adam Steen. > > The rationale is,

TSC timecounters

2017-10-06 Thread Mike Belopuhov
Hi, An experimental change to use TSC as a timecounter source on a variety of modern Intel and AMD CPUs has been just committed and enabled on OpenBSD/amd64 thanks to the work done by Adam Steen. The rationale is, quoting the commit message: If frequency of an invariant (non-stop) time stamp