diff options
author | Jim Mattson <jmattson@google.com> | 2022-02-02 17:48:12 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-02-14 07:43:46 -0500 |
commit | b8bfee85f1307426e0242d654f3a14c06ef639c5 (patch) | |
tree | b5c35979c5af7db992a271a50d593f33ea7d8b6e /drivers/dio/dio.c | |
parent | 66fa226c131fb89287f8f7d004a46e39a859fbf6 (diff) | |
download | linux-stable-b8bfee85f1307426e0242d654f3a14c06ef639c5.tar.gz linux-stable-b8bfee85f1307426e0242d654f3a14c06ef639c5.tar.bz2 linux-stable-b8bfee85f1307426e0242d654f3a14c06ef639c5.zip |
KVM: x86/pmu: Don't truncate the PerfEvtSeln MSR when creating a perf event
AMD's event select is 3 nybbles, with the high nybble in bits 35:32 of
a PerfEvtSeln MSR. Don't drop the high nybble when setting up the
config field of a perf_event_attr structure for a call to
perf_event_create_kernel_counter().
Fixes: ca724305a2b0 ("KVM: x86/vPMU: Implement AMD vPMU code for KVM")
Reported-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20220203014813.2130559-1-jmattson@google.com>
Reviewed-by: David Dunn <daviddunn@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/dio/dio.c')
0 files changed, 0 insertions, 0 deletions