linux/arch/x86/kernel/cpu
Xin Li 530dce278a 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
2024-01-31 22:03:27 +01:00
..
mce x86/fred: Add a machine check entry stub for FRED 2024-01-31 22:02:25 +01:00
microcode x86/microcode/intel: Set new revision only after a successful update 2023-12-03 11:49:53 +01:00
mtrr x86/mtrr: Document missing function parameters in kernel-doc 2023-11-20 10:19:27 +01:00
resctrl - Add support for non-contiguous capacity bitmasks being added to 2023-10-30 12:07:29 -10:00
sgx arch/x86: Fix typos 2024-01-03 11:46:22 +01:00
.gitignore
acrn.c x86/traps: Add sysvec_install() to install a system interrupt handler 2024-01-31 22:02:36 +01:00
amd.c - Add synthetic X86_FEATURE flags for the different AMD Zen generations 2024-01-08 15:45:31 -08:00
aperfmperf.c x86/aperfmperf: Erase stale arch_freq_scale values when disabling frequency invariance readings 2023-01-16 10:19:15 +01:00
bugs.c x86/srso: Remove unnecessary semicolon 2023-10-20 12:50:35 +02:00
cacheinfo.c x86/cpu: Move cpu_l[l2]c_id into topology info 2023-10-10 14:38:18 +02:00
centaur.c x86/cpu/centaur: Add Centaur family >=7 CPUs initialization support 2020-09-11 10:53:19 +02:00
common.c x86/syscall: Split IDT syscall setup code into idt_syscall_init() 2024-01-31 22:03:27 +01:00
cpu.h x86/cpu: Move cpu_l[l2]c_id into topology info 2023-10-10 14:38:18 +02:00
cpuid-deps.c x86/cpufeatures: Add the CPU feature bit for FRED 2024-01-25 19:10:30 +01:00
cyrix.c x86/cyrix: include header linux/isa-dma.h 2022-07-26 14:03:12 -05:00
debugfs.c x86/cpu: Provide debug interface 2023-10-10 14:38:19 +02:00
feat_ctl.c x86/cpu: Include the header of init_ia32_feat_ctl()'s prototype 2022-09-26 17:06:27 +02:00
hygon.c x86/barrier: Do not serialize MSR accesses on AMD 2023-11-13 10:09:45 +01:00
hypervisor.c
intel_epb.c x86/cpu/intel_epb: Don't rely on link order 2023-11-24 13:54:31 +01:00
intel_pconfig.c
intel.c sysctl-6.7-rc1 2023-11-01 20:51:41 -10:00
Makefile x86/cpu: Provide debug interface 2023-10-10 14:38:19 +02:00
match.c
mkcapflags.sh
mshyperv.c x86/traps: Add sysvec_install() to install a system interrupt handler 2024-01-31 22:02:36 +01:00
perfctr-watchdog.c x86/nmi_watchdog: Fix old-style NMI watchdog regression on old Intel CPUs 2021-06-10 10:04:40 +02:00
powerflags.c
proc.c x86/cpu: Move cpu_core_id into topology info 2023-10-10 14:38:17 +02:00
rdrand.c x86/rdrand: Remove "nordrand" flag in favor of "random.trust_cpu" 2022-07-18 15:04:04 +02:00
scattered.c x86/cpufeatures: Add Bandwidth Monitoring Event Configuration feature flag 2023-01-23 17:38:31 +01:00
topology.c x86/cpu: Move cpu_core_id into topology info 2023-10-10 14:38:17 +02:00
transmeta.c
tsx.c x86/cpu: Remove redundant extern x86_read_arch_cap_msr() 2023-01-10 12:40:24 +01:00
umc.c
umwait.c x86/umwait: move to use bus_get_dev_root() 2023-03-17 15:29:29 +01:00
vmware.c sched/clock/x86: Mark sched_clock() noinstr 2023-01-31 15:01:47 +01:00
vortex.c x86/CPU: Add support for Vortex CPUs 2021-10-21 15:49:07 +02:00
zhaoxin.c x86/cpu: Remove pointless evaluation of x86_coreid_bits 2023-10-10 14:38:18 +02:00