Re: [PATCH v2] target/ppc/kvm: Cache timebase frequency

2021-03-21 Thread David Gibson
On Wed, Mar 17, 2021 at 06:57:07PM +0100, Greg Kurz wrote: > Each vCPU core exposes its timebase frequency in the DT. When running > under KVM, this means parsing /proc/cpuinfo in order to get the timebase > frequency of the host CPU. > > The parsing appears to slow down the boot quite a bit with

[PATCH v2] target/ppc/kvm: Cache timebase frequency

2021-03-17 Thread Greg Kurz
Each vCPU core exposes its timebase frequency in the DT. When running under KVM, this means parsing /proc/cpuinfo in order to get the timebase frequency of the host CPU. The parsing appears to slow down the boot quite a bit with higher number of cores: # of cores seconds spent in spapr_dt_cpu