]> 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>
Fri, 4 Oct 2024 14:29:58 +0000 (16:29 +0200)
commitd5c5afdb9e1efe7e7061e3688356bdae50bfd174
tree4ea1f701e70e52ffbec71acb94d1196434e0a1ed
parent1d8c1add5e36e04f1ac067b1271f146bcee9fd14
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