x86/entry: Use run_sysvec_on_irqstack_cond() for XEN upcall
authorThomas Gleixner <tglx@linutronix.de>
Tue, 9 Feb 2021 23:40:49 +0000 (00:40 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Feb 2021 22:34:15 +0000 (23:34 +0100)
commit359f01d1816fc1ea0161e6c30722bef1ed6b8abb
treefabdee4746e2f8d52eb3ecc79fdcbfa94140376d
parent5b51e1db9bdc312d53087a0c97d54ea150111c0d
x86/entry: Use run_sysvec_on_irqstack_cond() for XEN upcall

To avoid yet another macro implementation reuse the existing
run_sysvec_on_irqstack_cond() and move the set_irq_regs() handling into the
called function. Makes the code even simpler.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210210002512.869753106@linutronix.de
arch/x86/entry/common.c