diff options
author | Like Xu <likexu@tencent.com> | 2023-01-24 23:49:04 +0000 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-01-26 18:03:42 -0800 |
commit | e33b6d79acac169bfe1a9682fc5b4f8202fa4c41 (patch) | |
tree | 9c0b0c2cbbb3c1853423e46c5fd258e7fcb57213 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
parent | c3531edc79a7adbe4451d34084e8bf227c022872 (diff) |
KVM: x86/pmu: Don't tell userspace to save MSRs for non-existent fixed PMCs
Limit the set of MSRs for fixed PMU counters based on the number of fixed
counters actually supported by the host so that userspace doesn't waste
time saving and restoring dummy values.
Signed-off-by: Like Xu <likexu@tencent.com>
[sean: split for !enable_pmu logic, drop min(), write changelog]
Link: https://lore.kernel.org/r/20230124234905.3774678-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions