Skip to content

Commit 8387435

Browse files
aeglsean-jc
authored andcommitted
KVM: x86/pmu: Switch to new Intel CPU model defines
Use X86_MATCH_VFM(), which does Vendor checking in addition to Family and Model checking, to do FMS-based detection of PEBS features. No functional change intended. Signed-off-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: massage changelog] Signed-off-by: Sean Christopherson <[email protected]>
1 parent ea19f7d commit 8387435

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/x86/kvm/pmu.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ EXPORT_SYMBOL_GPL(kvm_pmu_eventsel);
3434

3535
/* Precise Distribution of Instructions Retired (PDIR) */
3636
static const struct x86_cpu_id vmx_pebs_pdir_cpu[] = {
37-
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, NULL),
38-
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_X, NULL),
37+
X86_MATCH_VFM(INTEL_ICELAKE_D, NULL),
38+
X86_MATCH_VFM(INTEL_ICELAKE_X, NULL),
3939
/* Instruction-Accurate PDIR (PDIR++) */
40-
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, NULL),
40+
X86_MATCH_VFM(INTEL_SAPPHIRERAPIDS_X, NULL),
4141
{}
4242
};
4343

4444
/* Precise Distribution (PDist) */
4545
static const struct x86_cpu_id vmx_pebs_pdist_cpu[] = {
46-
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, NULL),
46+
X86_MATCH_VFM(INTEL_SAPPHIRERAPIDS_X, NULL),
4747
{}
4848
};
4949

0 commit comments

Comments
 (0)