diff options
author | Eric Hankland <ehankland@google.com> | 2020-01-28 00:22:56 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-02-05 18:01:15 +0300 |
commit | 4400cf546b4bb62d49198f6642add01bf6e9b34d (patch) | |
tree | 7dc14820cd501a5bd7f6c0b463545a8f591148e5 /scripts/gdb/linux/utils.py | |
parent | a83502314ce303c6341b249c41121759c7477ba1 (diff) | |
download | linux-4400cf546b4bb62d49198f6642add01bf6e9b34d.tar.xz |
KVM: x86: Fix perfctr WRMSR for running counters
Correct the logic in intel_pmu_set_msr() for fixed and general purpose
counters. This was recently changed to set pmc->counter without taking
in to account the value of pmc_read_counter() which will be incorrect if
the counter is currently running and non-zero; this changes back to the
old logic which accounted for the value of currently running counters.
Signed-off-by: Eric Hankland <ehankland@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions