x86: track when in #MC context
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 26 Feb 2020 16:38:11 +0000 (17:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Feb 2020 16:38:11 +0000 (17:38 +0100)
commit125c582bfdd4b673ee4458b0a41277ae9d52448b
treeff2184601e7f2aee492c73f1d9c8f14b6cbffa64
parent88f8b8daa96de9062bb05b7d57f8f4ca2a77a834
x86: track when in #MC context

Add helpers to track when executing in #MC handler context. This is
modeled after the in_irq helpers.

Note that there are no users of in_mce_handler() introduced by the
change, further users will be added by followup changes.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/mce.c
xen/include/asm-x86/hardirq.h