Commit 625627e3 authored by Wei Wang's avatar Wei Wang Committed by Yunying Sun
Browse files

KVM: x86: use the KVM side max supported fixed counter

mainline inclusion
from mainline-v5.18-rc1
commit 0144ba0c
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8WXIM
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0144ba0c5bd3176647bb4d49a697d231610c78b7



-------------------------------------

KVM vPMU doesn't support to emulate all the fixed counters that the
host PMU driver has supported, e.g. the fixed counter 3 used by
Topdown metrics hasn't been supported by KVM so far.

Rename MAX_FIXED_COUNTERS to KVM_PMC_MAX_FIXED to have a more
straightforward naming convention as INTEL_PMC_MAX_FIXED used by the
host PMU driver, and fix vPMU to use the KVM side KVM_PMC_MAX_FIXED
for the virtual fixed counter emulation, instead of the host side
INTEL_PMC_MAX_FIXED.

Intel-SIG: commit 0144ba0c KVM: x86: use the KVM side max supported fixed counter
Backport PEBS format 5 support to kernel v5.10.

Signed-off-by: default avatarWei Wang <wei.w.wang@intel.com>
Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/1643750603-100733-2-git-send-email-kan.liang@linux.intel.com


Signed-off-by: default avatarYunying Sun <yunying.sun@intel.com>
parent 36f313d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment