diff options
author | Xin Li <xin3.li@intel.com> | 2023-12-05 13:50:22 +0300 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2024-02-01 00:03:27 +0300 |
commit | 530dce278afffd8084af9a23493532912cdbe98a (patch) | |
tree | ad89927dcab780786be38fa817223d0bb0cd8721 /arch/x86/entry | |
parent | 70d0fe5d0923abfb28c26e71171944f4801f9f38 (diff) | |
download | linux-530dce278afffd8084af9a23493532912cdbe98a.tar.xz |
x86/syscall: Split IDT syscall setup code into idt_syscall_init()
Because FRED uses the ring 3 FRED entrypoint for SYSCALL and SYSENTER and
ERETU is the only legit instruction to return to ring 3, there is NO need
to setup SYSCALL and SYSENTER MSRs for FRED, except the IA32_STAR MSR.
Split IDT syscall setup code into idt_syscall_init() to make it easy to
skip syscall setup code when FRED is enabled.
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-34-xin3.li@intel.com
Diffstat (limited to 'arch/x86/entry')
0 files changed, 0 insertions, 0 deletions