Commit 527ec89
deepin: Fix kabi for CWF PMU support
Intel inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/ICZHEB
CVE: NA
--------------------------------
Following upstream commits introduced 2 fields (config1 and dyn_constraint)
in struct hw_perf_event, which breaks kABI.
ec980e4 ("perf/x86/intel: Support auto counter reload")
4dfe323 ("perf/x86: Add dynamic constraint")
To fix this kABI breakage, we introduce struct hw_perf_event_ext, and
use one KABI_RESERVE field in struct perf_event as pointer to this
struct hw_perf_event_ext. This is viable because hw_perf_event is
always embedded in struct perf_event, so we can always access
hw_perf_event_ext from perf_event when needed.
We also create a kmem_cache for struct hw_per_event_ext.
Another kABI changes are caused by the following commit:
0e102ce ("KVM: x86/pmu: Change ambiguous _mask suffix to _rsvd in kvm_pmu")
But the fix is trivial.
Fixes: ec980e4 ("perf/x86/intel: Support auto counter reload")
Fixes: 4dfe323 ("perf/x86: Add dynamic constraint")
Signed-off-by: Jason Zeng <jason.zeng@intel.com>
Link: #1356
[Backport: drop arch/x86/include/asm/kvm_host.h for no rename it]
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent 93cecaf commit 527ec89
File tree
4 files changed
+33
-12
lines changed- arch/x86/events
- intel
- include/linux
- kernel/events
4 files changed
+33
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
| 678 | + | |
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2927 | 2927 | | |
2928 | 2928 | | |
2929 | 2929 | | |
| 2930 | + | |
2930 | 2931 | | |
2931 | 2932 | | |
2932 | 2933 | | |
| |||
2937 | 2938 | | |
2938 | 2939 | | |
2939 | 2940 | | |
2940 | | - | |
| 2941 | + | |
2941 | 2942 | | |
2942 | 2943 | | |
2943 | 2944 | | |
| |||
2998 | 2999 | | |
2999 | 3000 | | |
3000 | 3001 | | |
3001 | | - | |
| 3002 | + | |
3002 | 3003 | | |
3003 | 3004 | | |
3004 | 3005 | | |
| |||
3844 | 3845 | | |
3845 | 3846 | | |
3846 | 3847 | | |
3847 | | - | |
| 3848 | + | |
3848 | 3849 | | |
3849 | | - | |
| 3850 | + | |
3850 | 3851 | | |
3851 | 3852 | | |
3852 | 3853 | | |
| |||
4208 | 4209 | | |
4209 | 4210 | | |
4210 | 4211 | | |
4211 | | - | |
| 4212 | + | |
4212 | 4213 | | |
4213 | 4214 | | |
4214 | 4215 | | |
| |||
4217 | 4218 | | |
4218 | 4219 | | |
4219 | 4220 | | |
4220 | | - | |
| 4221 | + | |
4221 | 4222 | | |
4222 | 4223 | | |
4223 | 4224 | | |
| |||
4283 | 4284 | | |
4284 | 4285 | | |
4285 | 4286 | | |
4286 | | - | |
| 4287 | + | |
4287 | 4288 | | |
4288 | 4289 | | |
4289 | 4290 | | |
| |||
4292 | 4293 | | |
4293 | 4294 | | |
4294 | 4295 | | |
4295 | | - | |
| 4296 | + | |
4296 | 4297 | | |
4297 | 4298 | | |
4298 | 4299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
153 | 164 | | |
154 | 165 | | |
155 | 166 | | |
| |||
158 | 169 | | |
159 | 170 | | |
160 | 171 | | |
161 | | - | |
162 | 172 | | |
163 | | - | |
164 | 173 | | |
165 | 174 | | |
166 | 175 | | |
| |||
854 | 863 | | |
855 | 864 | | |
856 | 865 | | |
857 | | - | |
| 866 | + | |
858 | 867 | | |
859 | 868 | | |
860 | 869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
428 | 429 | | |
429 | 430 | | |
430 | 431 | | |
| |||
5012 | 5013 | | |
5013 | 5014 | | |
5014 | 5015 | | |
| 5016 | + | |
5015 | 5017 | | |
5016 | 5018 | | |
5017 | 5019 | | |
| |||
12067 | 12069 | | |
12068 | 12070 | | |
12069 | 12071 | | |
| 12072 | + | |
| 12073 | + | |
| 12074 | + | |
| 12075 | + | |
| 12076 | + | |
| 12077 | + | |
| 12078 | + | |
| 12079 | + | |
12070 | 12080 | | |
12071 | 12081 | | |
12072 | 12082 | | |
| |||
13929 | 13939 | | |
13930 | 13940 | | |
13931 | 13941 | | |
| 13942 | + | |
13932 | 13943 | | |
13933 | 13944 | | |
13934 | 13945 | | |
| |||
0 commit comments