x86/mce: Remove noinstr annotation from mce_setup()
authorBorislav Petkov <bp@suse.de>
Tue, 5 Oct 2021 17:54:47 +0000 (19:54 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 13 Dec 2021 13:12:21 +0000 (14:12 +0100)
commit487d654db3edacc31dee86b10258cc740640fad8
treeac7f44aeb22c8b758b59336a96ddbed7c7bb22e7
parent88f66a42353717e7fac31caf04f0acd2d7fbbf54
x86/mce: Remove noinstr annotation from mce_setup()

Instead, sandwitch around the call which is done in noinstr context and
mark the caller - mce_gather_info() - as noinstr.

Also, document what the whole instrumentation strategy with #MC is going
to be in the future and where it all is supposed to be going to.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20211208111343.8130-5-bp@alien8.de
arch/x86/kernel/cpu/mce/core.c