Re: [3/8] x86/tsc: Store and check TSC ADJUST MSR

2017-01-30 Thread Borislav Petkov
On Mon, Jan 30, 2017 at 02:04:46PM +0100, Thomas Gleixner wrote: > > The AMD-Manual from 12/16 does not mention that MSR. I do not have > > access to an AMD machine. But i can only assume that bigger machines > > also suffer from async TSCs and basically all fall back to HPET. > > Borislav? So fa

Re: [3/8] x86/tsc: Store and check TSC ADJUST MSR

2017-01-30 Thread Thomas Gleixner
On Mon, 30 Jan 2017, Henning Schild wrote: > On Mon, 30 Jan 2017 11:20:25 +0100 > Thomas Gleixner wrote: > > There is nothing you can ever be sure about, but I doubt that the > > ADJUST MSR is going to vanish. > > That sounds very much like i expected. But assuming the MSR has come to > stay, the

Re: [3/8] x86/tsc: Store and check TSC ADJUST MSR

2017-01-30 Thread Henning Schild
On Mon, 30 Jan 2017 11:20:25 +0100 Thomas Gleixner wrote: > Henning, > > On Fri, 27 Jan 2017, Henning Schild wrote: > > > > did you by any chance look into TSC synchronization by adjusting the > > absolute value (MSR_IA32_TSC) as well? As far as i have seen Linux > > did that a long time ago an

Re: [3/8] x86/tsc: Store and check TSC ADJUST MSR

2017-01-30 Thread Thomas Gleixner
Henning, On Fri, 27 Jan 2017, Henning Schild wrote: > > did you by any chance look into TSC synchronization by adjusting the > absolute value (MSR_IA32_TSC) as well? As far as i have seen Linux did > that a long time ago and eventually it was stopped because it caused more > harm than good. I wa

Re: [3/8] x86/tsc: Store and check TSC ADJUST MSR

2017-01-27 Thread Henning Schild
Thomas, did you by any chance look into TSC synchronization by adjusting the absolute value (MSR_IA32_TSC) as well? As far as i have seen Linux did that a long time ago and eventually it was stopped because it caused more harm than good. https://github.com/torvalds/linux/commit/95492e4646e5de8b43d

[patch 3/8] x86/tsc: Store and check TSC ADJUST MSR

2016-11-19 Thread Thomas Gleixner
The TSC_ADJUST MSR shows whether the TSC has been modified. This is helpful in a two aspects: 1) It allows to detect BIOS wreckage, where SMM code tries to 'hide' the cycles spent by storing the TSC value at SMM entry and restoring it at SMM exit. On affected machines the TSCs run slowly out