Re: [Xen-devel] [PATCH v2 1/3] x86/VPMU: Support only versions 2 through 4 of architectural performance monitoring

2015-12-03 Thread Tian, Kevin
> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Sent: Wednesday, December 02, 2015 12:50 AM > > We need to have at least version 2 since it's the first version to > support various control and status registers (such as > MSR_CORE_PERF_GLOBAL_CTRL) that VPMU relies on always having.

Re: [Xen-devel] [PATCH v2 1/3] x86/VPMU: Support only versions 2 through 4 of architectural performance monitoring

2015-12-02 Thread Jan Beulich
>>> On 01.12.15 at 17:50, wrote: > @@ -746,6 +746,13 @@ static void core2_vpmu_do_cpuid(unsigned int input, > if ( cpu_has(_cpu_data, X86_FEATURE_DSCPL) ) > *ecx |= cpufeat_mask(X86_FEATURE_DSCPL); > } > +break; > + > +

[Xen-devel] [PATCH v2 1/3] x86/VPMU: Support only versions 2 through 4 of architectural performance monitoring

2015-12-01 Thread Boris Ostrovsky
We need to have at least version 2 since it's the first version to support various control and status registers (such as MSR_CORE_PERF_GLOBAL_CTRL) that VPMU relies on always having. Since we don't fully support version 4 yet report it as version 3 in CPUID. With explicit testing for PMU version