Re: [PATCH] KVM: X86: Emulate APERF/MPERF to report actual VCPU frequency

2020-06-23 Thread Jim Mattson
On Tue, Jun 23, 2020 at 12:05 PM Sean Christopherson wrote: > > On Tue, Jun 23, 2020 at 11:39:16AM -0700, Jim Mattson wrote: > > On Tue, Jun 23, 2020 at 11:29 AM Sean Christopherson > > wrote: > > > > > > On Tue, Jun 23, 2020 at 02:35:30PM +0800, Like Xu wrote: > > > > The aperf/mperf are used to

Re: [PATCH] KVM: X86: Emulate APERF/MPERF to report actual VCPU frequency

2020-06-23 Thread Sean Christopherson
On Tue, Jun 23, 2020 at 11:39:16AM -0700, Jim Mattson wrote: > On Tue, Jun 23, 2020 at 11:29 AM Sean Christopherson > wrote: > > > > On Tue, Jun 23, 2020 at 02:35:30PM +0800, Like Xu wrote: > > > The aperf/mperf are used to report current CPU frequency after 7d5905dc14a > > > "x86 / CPU: Always sh

Re: [PATCH] KVM: X86: Emulate APERF/MPERF to report actual VCPU frequency

2020-06-23 Thread Jim Mattson
On Tue, Jun 23, 2020 at 11:29 AM Sean Christopherson wrote: > > On Tue, Jun 23, 2020 at 02:35:30PM +0800, Like Xu wrote: > > The aperf/mperf are used to report current CPU frequency after 7d5905dc14a > > "x86 / CPU: Always show current CPU frequency in /proc/cpuinfo". But guest > > kernel always r

Re: [PATCH] KVM: X86: Emulate APERF/MPERF to report actual VCPU frequency

2020-06-23 Thread Sean Christopherson
On Tue, Jun 23, 2020 at 02:35:30PM +0800, Like Xu wrote: > The aperf/mperf are used to report current CPU frequency after 7d5905dc14a > "x86 / CPU: Always show current CPU frequency in /proc/cpuinfo". But guest > kernel always reports a fixed VCPU frequency in the /proc/cpuinfo, which > may confuse

[PATCH] KVM: X86: Emulate APERF/MPERF to report actual VCPU frequency

2020-06-22 Thread Like Xu
The aperf/mperf are used to report current CPU frequency after 7d5905dc14a "x86 / CPU: Always show current CPU frequency in /proc/cpuinfo". But guest kernel always reports a fixed VCPU frequency in the /proc/cpuinfo, which may confuse users especially when turbo is enabled on the host. Emulate gue