]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/traps: Define RMP violation #PF error code
authorBrijesh Singh <brijesh.singh@amd.com>
Fri, 26 Jan 2024 04:11:08 +0000 (22:11 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 29 Jan 2024 16:26:56 +0000 (17:26 +0100)
commit54055344b232c917a9e492a8bf5864fed99ad6b8
tree2b1b4eddd1c461f146657dccbc675c1555954f08
parent1f568d36361b4891696280b719ca4b142db872ba
x86/traps: Define RMP violation #PF error code

Bit 31 in the page fault-error bit will be set when processor encounters
an RMP violation.

While at it, use the BIT() macro.

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Link: https://lore.kernel.org/r/20240126041126.1927228-9-michael.roth@amd.com
arch/x86/include/asm/trap_pf.h
arch/x86/mm/fault.c