Skip to content

Commit 735e592

Browse files
dkaplan2bp3tk0v
authored andcommitted
x86/Kconfig: Add arch attack vector support
ARCH_HAS_CPU_ATTACK_VECTORS should be set for architectures which implement the new attack-vector based controls for CPU mitigations. If an arch does not support attack-vector based controls then an attempt to use them results in a warning. Signed-off-by: David Kaplan <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/[email protected]
1 parent 19c24f7 commit 735e592

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

arch/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,4 +1763,7 @@ config ARCH_WANTS_PRE_LINK_VMLINUX
17631763
An architecture can select this if it provides arch/<arch>/tools/Makefile
17641764
with .arch.vmlinux.o target to be linked into vmlinux.
17651765

1766+
config ARCH_HAS_CPU_ATTACK_VECTORS
1767+
bool
1768+
17661769
endmenu

arch/x86/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ config X86
7575
select ARCH_ENABLE_SPLIT_PMD_PTLOCK if (PGTABLE_LEVELS > 2) && (X86_64 || X86_PAE)
7676
select ARCH_ENABLE_THP_MIGRATION if X86_64 && TRANSPARENT_HUGEPAGE
7777
select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
78+
select ARCH_HAS_CPU_ATTACK_VECTORS if CPU_MITIGATIONS
7879
select ARCH_HAS_CACHE_LINE_SIZE
7980
select ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION
8081
select ARCH_HAS_CPU_FINALIZE_INIT

0 commit comments

Comments
 (0)