x86/ptrace: Add FRED additional information to the pt_regs structure
authorXin Li <xin3.li@intel.com>
Tue, 5 Dec 2023 10:50:03 +0000 (02:50 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 31 Jan 2024 21:01:20 +0000 (22:01 +0100)
commit3c77bf02d0c03beb3efdf7a5b427fb2e1a76c265
tree0bcad7808e5811d560fac6b06384a8c426fbaaab
parentee63291aa8287cb7ded767d340155fe8681fc075
x86/ptrace: Add FRED additional information to the pt_regs structure

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
arch/x86/include/asm/ptrace.h