linux/arch/x86/include
Xin Li 9c268be377 x86/ptrace: Add FRED additional information to the pt_regs structure
[ Upstream commit 3c77bf02d0 ]

FRED defines additional information in the upper 48 bits of cs/ss
fields. Therefore add the information definitions into the pt_regs
structure.

Specifically introduce a new structure fred_ss to denote the FRED flags
above SS selector, which avoids FRED_SSX_ macros and makes the code
simpler and easier to read.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Originally-by: H. Peter Anvin (Intel) <hpa@zytor.com>
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-15-xin3.li@intel.com
Stable-dep-of: dc81e556f2 ("x86/fred: Clear WFE in missing-ENDBRANCH #CPs")
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-01-09 13:31:52 +01:00
..
asm x86/ptrace: Add FRED additional information to the pt_regs structure 2025-01-09 13:31:52 +01:00
uapi/asm x86/boot: Move mem_encrypt= parsing to the decompressor 2024-04-10 16:36:07 +02:00