Commit 4b4191b
perf/x86: Refuse to export capabilities for hybrid PMUs
Now that KVM disables vPMU support on hybrid CPUs, WARN and return zeros
if perf_get_x86_pmu_capability() is invoked on a hybrid CPU. The helper
doesn't provide an accurate accounting of the PMU capabilities for hybrid
CPUs and needs to be enhanced if KVM, or anything else outside of perf,
wants to act on the PMU capabilities.
Cc: [email protected]
Cc: Andrew Cooper <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Andi Kleen <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>1 parent 4d7404e commit 4b4191b
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2974 | 2974 | | |
2975 | 2975 | | |
2976 | 2976 | | |
2977 | | - | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
2978 | 2980 | | |
2979 | 2981 | | |
2980 | 2982 | | |
2981 | 2983 | | |
2982 | | - | |
2983 | 2984 | | |
2984 | | - | |
2985 | | - | |
2986 | | - | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
2987 | 2988 | | |
| 2989 | + | |
2988 | 2990 | | |
2989 | 2991 | | |
2990 | 2992 | | |
| |||
0 commit comments