>>> 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
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 ++