On Mon, 18 Nov 2024 14:52:05 -0800, Zide Chen wrote: > The fixed counters may not be contiguous. Intel SDM recommends how to > use CPUID.0AH to determine if a Fixed Counter is supported: > FxCtr[i]_is_supported := ECX[i] || (EDX[4:0] > i); > > For example, it's perfectly valid to have CPUID.0AH.EDX[4:0] == 3 and > CPUID.0AH.ECX == 0x77, but checking the fixed counter index against > CPUID.0AH.EDX[4:0] only, will deem that FxCtr[6:4] are not supported. > > [...] Applied to kvm-x86 next (and now pulled by Paolo), thanks! [1/3] nVMX: fixed-function performance counters could be not contiguous https://github.com/kvm-x86/kvm-unit-tests/commit/d5a6cfacc5ba [2/3] x86/pmu: Fixed PEBS basic record parsing issue https://github.com/kvm-x86/kvm-unit-tests/commit/1006feddb2b6 [3/3] x86/pmu: Execute PEBS test only if PEBSRecordFormat >= 4 https://github.com/kvm-x86/kvm-unit-tests/commit/e67ba872d947 -- https://github.com/kvm-x86/kvm-unit-tests/tree/next