Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Wang, Wei W
On 26/10/2015 18:52, Jan Beulich wrote: > >>> On 26.10.15 at 11:45, wrote: > > On 26/10/2015 18:37, Jan Beulich wrote: > >> >>> On 26.10.15 at 11:19, wrote: > >> > On 26/10/2015 17:54, Jan Beulich wrote: > >> >> That wasn't the question; I rather inquired what "meaning at the same > time" > >>

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Jan Beulich
>>> On 26.10.15 at 11:45, wrote: > On 26/10/2015 18:37, Jan Beulich wrote: >> >>> On 26.10.15 at 11:19, wrote: >> > On 26/10/2015 17:54, Jan Beulich wrote: >> >> That wasn't the question; I rather inquired what "meaning at the same >> >> time" >> >> both fields have. >> > >> > turbo_enable: in

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Wang, Wei W
On 26/10/2015 18:37, Jan Beulich wrote: > >>> On 26.10.15 at 11:19, wrote: > > On 26/10/2015 17:54, Jan Beulich wrote: > >> That wasn't the question; I rather inquired what "meaning at the same time" > >> both fields have. > > > > turbo_enable: indicates if turbo is enabled or not. > > turbo_pct

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Jan Beulich
>>> On 26.10.15 at 11:19, wrote: > On 26/10/2015 17:54, Jan Beulich wrote: >> That wasn't the question; I rather inquired what "meaning at the same time" >> both fields have. > > turbo_enable: indicates if turbo is enabled or not. > turbo_pct: shows the capability of turbo in percentage. For exa

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Wang, Wei W
On 26/10/2015 17:54, Jan Beulich wrote: > >>> On 26.10.15 at 10:48, wrote: > > On 26/10/2015 17:42, Jan Beulich wrote: > >> >>> On 26.10.15 at 08:59, wrote: > >> > On 26/10/2015 15:03, Jan Beulich wrote: > >> >> >>> "Wang, Wei W" 10/26/15 7:27 AM >>> > >> >> >On 08/10/2015 12:11, Jan Beulich

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Jan Beulich
>>> On 26.10.15 at 10:48, wrote: > On 26/10/2015 17:42, Jan Beulich wrote: >> >>> On 26.10.15 at 08:59, wrote: >> > On 26/10/2015 15:03, Jan Beulich wrote: >> >> >>> "Wang, Wei W" 10/26/15 7:27 AM >>> >> >> >On 08/10/2015 12:11, Jan Beulich wrote: >> >> >> >>> On 14.09.15 at 04:32, wrote: >>

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Wang, Wei W
On 26/10/2015 17:42, Jan Beulich wrote: > >>> On 26.10.15 at 08:59, wrote: > > On 26/10/2015 15:03, Jan Beulich wrote: > >> >>> "Wang, Wei W" 10/26/15 7:27 AM >>> > >> >On 08/10/2015 12:11, Jan Beulich wrote: > >> >> >>> On 14.09.15 at 04:32, wrote: > >> >> > @@ -309,23 +326,13 @@ struct xen_

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Jan Beulich
>>> On 26.10.15 at 08:59, wrote: > On 26/10/2015 15:03, Jan Beulich wrote: >> >>> "Wang, Wei W" 10/26/15 7:27 AM >>> >> >On 08/10/2015 12:11, Jan Beulich wrote: >> >> >>> On 14.09.15 at 04:32, wrote: >> >> > -new_policy.governor = __find_governor(op- >> >u.set_gov.scaling_governor); >> >>

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Wang, Wei W
On 26/10/2015 15:03, Jan Beulich wrote: > >>> "Wang, Wei W" 10/26/15 7:27 AM >>> > >On 08/10/2015 12:11, Jan Beulich wrote: > >> >>> On 14.09.15 at 04:32, wrote: > >> > -new_policy.governor = __find_governor(op- > >u.set_gov.scaling_governor); > >> > -if (new_policy.governor == NULL) >

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-26 Thread Jan Beulich
>>> "Wang, Wei W" 10/26/15 7:27 AM >>> >On 08/10/2015 12:11, Jan Beulich wrote: >> >>> On 14.09.15 at 04:32, wrote: >> > --- a/tools/libxc/xc_pm.c >> > +++ b/tools/libxc/xc_pm.c >> > @@ -260,13 +260,14 @@ int xc_get_cpufreq_para(xc_interface *xch, int >> cpuid, >> > } >> > else >> >

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-25 Thread Wang, Wei W
On 08/10/2015 12:11, Jan Beulich wrote: > >>> On 14.09.15 at 04:32, wrote: > > --- a/tools/libxc/xc_pm.c > > +++ b/tools/libxc/xc_pm.c > > @@ -260,13 +260,14 @@ int xc_get_cpufreq_para(xc_interface *xch, int > cpuid, > > } > > else > > { > > -user_para->cpuinfo_cur_freq = s

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-07 Thread Jan Beulich
>>> On 14.09.15 at 04:32, wrote: > --- a/tools/libxc/xc_pm.c > +++ b/tools/libxc/xc_pm.c > @@ -260,13 +260,14 @@ int xc_get_cpufreq_para(xc_interface *xch, int cpuid, > } > else > { > -user_para->cpuinfo_cur_freq = sys_para->cpuinfo_cur_freq; > -user_para->cpuinfo_ma

[Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-09-13 Thread Wei Wang
Add support in the pmstat.c so that the xenpm tool can request to access the intel_pstate driver. Signed-off-by: Wei Wang --- tools/libxc/xc_pm.c | 15 ++-- xen/drivers/acpi/pmstat.c | 179 +--- xen/include/public/sysctl.h | 29 --- 3 files