diff options
author | 2022-03-07 17:24:52 -0800 | |
---|---|---|
committer | 2022-04-02 05:34:40 -0400 | |
commit | 95b065bf5c431c06c68056a03a5853b660640ecc (patch) | |
tree | 9a74f619c8d4754dcc022591265018c7a68f7f09 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | KVM: Don't actually set a request when evicting vCPUs for GFN cache invd (diff) | |
download | wireguard-linux-95b065bf5c431c06c68056a03a5853b660640ecc.tar.xz wireguard-linux-95b065bf5c431c06c68056a03a5853b660640ecc.zip |
KVM: x86/pmu: Use different raw event masks for AMD and Intel
The third nybble of AMD's event select overlaps with Intel's IN_TX and
IN_TXCP bits. Therefore, we can't use AMD64_RAW_EVENT_MASK on Intel
platforms that support TSX.
Declare a raw_event_mask in the kvm_pmu structure, initialize it in
the vendor-specific pmu_refresh() functions, and use that mask for
PERF_TYPE_RAW configurations in reprogram_gp_counter().
Fixes: 710c47651431 ("KVM: x86/pmu: Use AMD64_RAW_EVENT_MASK for PERF_TYPE_RAW")
Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20220308012452.3468611-1-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions