Re: [Xen-devel] [PATCH v16 14/23] x86/VPMU: Initialize VPMUs with __initcall

2014-12-18 Thread Jan Beulich
>>> On 17.12.14 at 16:38, wrote: > +int __init amd_vpmu_init(void) > +{ > +if ( current_cpu_data.x86_vendor != X86_VENDOR_AMD ) > +return -EINVAL; Your only caller guarantees this not to be the case. > +int __init core2_vpmu_init(void) > +{ > +u64 caps; > + > +if ( current_cp

[Xen-devel] [PATCH v16 14/23] x86/VPMU: Initialize VPMUs with __initcall

2014-12-17 Thread Boris Ostrovsky
Move some VPMU initilization operations into __initcalls to avoid performing same tests and calculations for each vcpu. Signed-off-by: Boris Ostrovsky Tested-by: Dietmar Hahn --- xen/arch/x86/hvm/svm/vpmu.c | 115 +--- xen/arch/x86/hvm/vmx/vpmu_core2.c | 154 ++