答复: [PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-30 Thread Li,Rongqing
; jmatt...@google.com; wanpen...@tencent.com; vkuzn...@redhat.com; > sean.j.christopher...@intel.com; pbonz...@redhat.com > 主题: Re: [PATCH][v2] kvm: x86: emulate APERF/MPERF registers > > On 4/29/2020 1:46 PM, Li RongQing wrote: > > Guest kernel reports a fixed cpu frequency in /pro

Re: [PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-30 Thread Xiaoyao Li
On 4/29/2020 1:46 PM, Li RongQing wrote: Guest kernel reports a fixed cpu frequency in /proc/cpuinfo, this is confused to user when turbo is enable, and aperf/mperf can be used to show current cpu frequency after 7d5905dc14a "(x86 / CPU: Always show current CPU frequency in /proc/cpuinfo)" so we

答复: [PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-29 Thread Li,Rongqing
de; > j...@8bytes.org; jmatt...@google.com; wanpen...@tencent.com; > vkuzn...@redhat.com; sean.j.christopher...@intel.com > 主题: Re: [PATCH][v2] kvm: x86: emulate APERF/MPERF registers > > On 29/04/20 10:54, Peter Zijlstra wrote: > > On Wed, Apr 29, 2020 at 01:46:36PM +0800, Li

Re: [PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-29 Thread Paolo Bonzini
On 29/04/20 10:54, Peter Zijlstra wrote: > On Wed, Apr 29, 2020 at 01:46:36PM +0800, Li RongQing wrote: >> Guest kernel reports a fixed cpu frequency in /proc/cpuinfo, >> this is confused to user when turbo is enable, and aperf/mperf >> can be used to show current cpu frequency after 7d5905dc14a

答复: [PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-29 Thread Li,Rongqing
> > Would it make sense to provide a pass-through APERF/MPERF for > KVM_HINTS_REALTIME ? Because that hint guarantees we have a 1:1 > vCPU:CPU binding and guaranteed no over-commit. Make sense I think this can be done in a separate patch for KVM_HINTS_REALTIME Thanks =Li

Re: [PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-29 Thread Peter Zijlstra
On Wed, Apr 29, 2020 at 01:46:36PM +0800, Li RongQing wrote: > Guest kernel reports a fixed cpu frequency in /proc/cpuinfo, > this is confused to user when turbo is enable, and aperf/mperf > can be used to show current cpu frequency after 7d5905dc14a > "(x86 / CPU: Always show current CPU

[PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-28 Thread Li RongQing
Guest kernel reports a fixed cpu frequency in /proc/cpuinfo, this is confused to user when turbo is enable, and aperf/mperf can be used to show current cpu frequency after 7d5905dc14a "(x86 / CPU: Always show current CPU frequency in /proc/cpuinfo)" so we should emulate aperf mperf to achieve it