https://github.com/torvalds/linux
Revision cf05a67b68b8d9d6469bedb63ee461f8c7de62e6 authored by Paolo Bonzini on 01 October 2019, 13:33:07 UTC, committed by Paolo Bonzini on 04 October 2019, 12:01:28 UTC
INTEL_PMC_MAX_GENERIC is currently 32, which exceeds the 18
contiguous MSR indices reserved by Intel for event selectors.
Since some machines actually have MSRs past the reserved range,
filtering them against x86_pmu.num_counters_gp may have false
positives.  Cut the list to 18 entries to avoid this.

Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Suggested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Jim Mattson <jamttson@google.com>
Fixes: e2ada66ec418 ("kvm: x86: Add Intel PMU MSRs to msrs_to_save[]", 2019-08-21)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 567926c
History
Tip revision: cf05a67b68b8d9d6469bedb63ee461f8c7de62e6 authored by Paolo Bonzini on 01 October 2019, 13:33:07 UTC
KVM: x86: omit "impossible" pmu MSRs from MSR list
Tip revision: cf05a67
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 15.0 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.7 KB
.mailmap -rw-r--r-- 13.1 KB
COPYING -rw-r--r-- 423 bytes
CREDITS -rw-r--r-- 97.1 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 595 bytes
MAINTAINERS -rw-r--r-- 515.9 KB
Makefile -rw-r--r-- 60.1 KB
README -rw-r--r-- 727 bytes

README

back to top