Re: [PATCH v2] x86/mce: Reduce number of machine checks taken during recovery
From: Borislav Petkov
Date: Mon Dec 27 2021 - 05:52:50 EST
On Fri, Dec 24, 2021 at 12:50:01PM +0100, Peter Zijlstra wrote:
> That's inaccurate, fixup_exception() (event if it's spelled correctly)
> does not unconditionally set the trap number in RAX, that's only done by
> ex_handler_fault() (or ex_handler_sgx()), which means all flows into
> this function must pass through: EX_TYPE_FAULT, EX_TYPE_FAULT_MCE or
> EX_TYPE_COPY.
Yeah, they all flow through the copy thing, see _ASM_EXTABLE_CPY()
everywhere in that file.
> Boris might fix up your comment if he applies I suppose..
I did with the following changes so that tip branches merging can work
relatively easily and so that I don't pull in the whole x86/core pile
into ras/core.
The automerge conflict resolve with tip/master is after the patch below
and it looks ok to me too.
Thoughts?
---