You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: deepin-community#1356
[Backport: drop arch/x86/include/asm/kvm_host.h for no rename it]
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
0 commit comments