File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1775,6 +1775,11 @@ static void __mcheck_cpu_init_timer(void)
1775
1775
mce_start_timer (t );
1776
1776
}
1777
1777
1778
+ bool filter_mce (struct mce * m )
1779
+ {
1780
+ return false;
1781
+ }
1782
+
1778
1783
/* Handle unconfigured int18 (should never happen) */
1779
1784
static void unexpected_machine_check (struct pt_regs * regs , long error_code )
1780
1785
{
Original file line number Diff line number Diff line change @@ -99,6 +99,9 @@ int mce_gen_pool_add(struct mce *mce)
99
99
{
100
100
struct mce_evt_llist * node ;
101
101
102
+ if (filter_mce (mce ))
103
+ return - EINVAL ;
104
+
102
105
if (!mce_evt_pool )
103
106
return - EINVAL ;
104
107
Original file line number Diff line number Diff line change @@ -173,4 +173,7 @@ struct mca_msr_regs {
173
173
174
174
extern struct mca_msr_regs msr_ops ;
175
175
176
+ /* Decide whether to add MCE record to MCE event pool or filter it out. */
177
+ extern bool filter_mce (struct mce * m );
178
+
176
179
#endif /* __X86_MCE_INTERNAL_H__ */
You can’t perform that action at this time.
0 commit comments