|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/2] x86/VPMU: Support only versions 2 and 3 of architectural performance monitoring
>>> On 30.11.15 at 19:38, <boris.ostrovsky@xxxxxxxxxx> wrote:
> ---
> xen/arch/x86/cpu/vpmu_intel.c | 55
> +++++++------------------------------------
> 1 file changed, 8 insertions(+), 47 deletions(-)
Considering the history of the file, I think the VMX maintainers
should be Cc-ed here. I think it was actually an oversight to change
maintainership of the files with their movement to xen/arch/x86/cpu/.
> --- a/xen/arch/x86/cpu/vpmu_intel.c
> +++ b/xen/arch/x86/cpu/vpmu_intel.c
> @@ -955,59 +955,20 @@ int vmx_vpmu_initialise(struct vcpu *v)
> int __init core2_vpmu_init(void)
> {
> u64 caps;
> + unsigned int version = 0;
>
> - if ( current_cpu_data.x86 != 6 )
> + if ( current_cpu_data.cpuid_level >= 0xa )
> + version = cpuid_eax(0xa) & 0xff;
MASK_EXTR(cpuid_eax(0xa), PMU_VERSION_MASK)
> + if ( (version != 2) && (version != 3) )
> {
> - printk(XENLOG_WARNING "VPMU: only family 6 is supported\n");
> + printk(XENLOG_WARNING "VPMU: version %d is not supported\n",
> version);
%u
And I second Dietmar's request.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |