mirror of
https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9.git
synced 2026-09-09 12:05:30 +08:00
JIRA: https://issues.redhat.com/browse/RHEL-31230 Conflicts: The Documentation/arch/x86/pti.rst hunk is applied to Documentation/x86/pti.rst due to missing upstream commit ff61f0791ce9 ("docs: move x86 documentation into Documentation/arch/"). commit ea4654e0885348f0faa47f6d7b44a08d75ad16e9 Author: Breno Leitao <leitao@debian.org> Date: Tue, 21 Nov 2023 08:07:31 -0800 x86/bugs: Rename CONFIG_PAGE_TABLE_ISOLATION => CONFIG_MITIGATION_PAGE_TABLE_ISOLATION Step 4/10 of the namespace unification of CPU mitigations related Kconfig options. [ mingo: Converted new uses that got added since the series was posted. ] Suggested-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Breno Leitao <leitao@debian.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Josh Poimboeuf <jpoimboe@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/r/20231121160740.1249350-5-leitao@debian.org Signed-off-by: Waiman Long <longman@redhat.com>
13 lines
251 B
C
13 lines
251 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef _INCLUDE_PTI_H
|
|
#define _INCLUDE_PTI_H
|
|
|
|
#ifdef CONFIG_MITIGATION_PAGE_TABLE_ISOLATION
|
|
#include <asm/pti.h>
|
|
#else
|
|
static inline void pti_init(void) { }
|
|
static inline void pti_finalize(void) { }
|
|
#endif
|
|
|
|
#endif
|