Define a feature flag for bit 8 of CPUID leaf 0x8000000A EDX which indicates support for virtualization of core performance monitoring counters. When this feature is available, a hypervisor can rely on hardware to restore and save guest counter state when entering or exiting from guest context. Signed-off-by: Sandipan Das --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 286d509f9363..0a81e9631234 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -370,6 +370,7 @@ #define X86_FEATURE_VMCBCLEAN (15*32+ 5) /* "vmcb_clean" VMCB clean bits support */ #define X86_FEATURE_FLUSHBYASID (15*32+ 6) /* "flushbyasid" Flush-by-ASID support */ #define X86_FEATURE_DECODEASSISTS (15*32+ 7) /* "decodeassists" Decode Assists support */ +#define X86_FEATURE_PERFCTR_VIRT (15*32+ 8) /* "perfctr_virt" PMC virtualization support */ #define X86_FEATURE_PAUSEFILTER (15*32+10) /* "pausefilter" Filtered pause intercept */ #define X86_FEATURE_PFTHRESHOLD (15*32+12) /* "pfthreshold" Pause filter threshold */ #define X86_FEATURE_AVIC (15*32+13) /* "avic" Virtual Interrupt Controller */ -- 2.43.0