xen/x86: cleanup unused NMI/MCE code
authorJuergen Gross <jgross@suse.com>
Wed, 24 Jul 2019 11:26:57 +0000 (13:26 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 24 Jul 2019 13:40:10 +0000 (14:40 +0100)
commit4782b7aeeae0ffb42d74e0f7f419ea955f35cab1
treec04bd46164405764beebb4ffa2869520cc56a15a
parent8970834eb95586d87b064e8c7fc49ee8d2875db4
xen/x86: cleanup unused NMI/MCE code

pv_raise_interrupt() is only called for NMIs these days, so the MCE
specific part can be removed. Rename pv_raise_interrupt() to
pv_raise_nmi() and NMI_MCE_SOFTIRQ to NMI_SOFTIRQ.

Additionally there is no need to pin the vcpu which the NMI is delivered
to; that is a leftover of (already removed) MCE handling. So remove the
pinning, too. Note that pinning was introduced by commit 355b0469a8
adding MCE support (with NMI support existing already). MCE using that
pinning was removed with commit 3a91769d6e again without cleaning up the
code.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-and-tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/pv/traps.c
xen/arch/x86/traps.c
xen/common/domain.c
xen/include/asm-x86/pv/traps.h
xen/include/asm-x86/softirq.h
xen/include/xen/sched.h