Re: [PATCH v4 1/1] i386: Make pmtimer tsc calibration not take 51 seconds to fail

2022-08-02 Thread Daniel Kiper
On Thu, Jul 28, 2022 at 02:34:16PM -0400, Robbie Harwood wrote: > From: Peter Jones > > On my laptop running at 2.4GHz, if I run a VM where tsc calibration > using pmtimer will fail presuming a broken pmtimer, it takes ~51 seconds > to do so (as measured with the stopwatch on my phone), with a tsc

[PATCH v4 1/1] i386: Make pmtimer tsc calibration not take 51 seconds to fail

2022-07-28 Thread Robbie Harwood
From: Peter Jones On my laptop running at 2.4GHz, if I run a VM where tsc calibration using pmtimer will fail presuming a broken pmtimer, it takes ~51 seconds to do so (as measured with the stopwatch on my phone), with a tsc delta of 0x1cd1c85300, or around 125 billion cycles. If instead of tryi