]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/idtentry: Incorporate definitions/declarations of the FRED entries
authorXin Li <xin3.li@intel.com>
Tue, 5 Dec 2023 10:50:11 +0000 (02:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:17 +0000 (15:11 +0200)
commitc86f5a9dfd24421e81b9b978d0ce4a6d06b6ce4c
treef2cd249d93ee9f85acfb0fc0098377c58d1d5bf0
parent3a69dcccd0ca39fea99026238daab40973bc62fe
x86/idtentry: Incorporate definitions/declarations of the FRED entries

[ Upstream commit 90f357208200a941e90e75757123326684d715d0 ]

FRED and IDT can share most of the definitions and declarations so
that in the majority of cases the actual handler implementation is the
same.

The differences are the exceptions where FRED stores exception related
information on the stack and the sysvec implementations as FRED can
handle irqentry/exit() in the dispatcher instead of having it in each
handler.

Also add stub defines for vectors which are not used due to Kconfig
decisions to spare the ifdeffery in the actual FRED dispatch code.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Xin Li <xin3.li@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Shan Kang <shan.kang@intel.com>
Link: https://lore.kernel.org/r/20231205105030.8698-23-xin3.li@intel.com
Stable-dep-of: 477d81a1c47a ("x86/entry: Remove unwanted instrumentation in common_interrupt()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/idtentry.h