Version 5 is backwards compatible with version 3. This allows to enable
vPMU on Ice Lake CPUs.
Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
return 0;
if ( v->domain->arch.cpuid->basic.pmu_version <= 1 ||
- v->domain->arch.cpuid->basic.pmu_version >= 5 )
+ v->domain->arch.cpuid->basic.pmu_version >= 6 )
return -EINVAL;
if ( (arch_pmc_cnt + fixed_pmc_cnt) == 0 )
switch ( version )
{
case 4:
- printk(XENLOG_INFO "VPMU: PMU version 4 is not fully supported. "
- "Emulating version 3\n");
+ case 5:
+ printk(XENLOG_INFO "VPMU: PMU version %u is not fully supported. "
+ "Emulating version 3\n", version);
/* FALLTHROUGH */
case 2: