Commit 735e5920 authored by David Kaplan's avatar David Kaplan Committed by Borislav Petkov (AMD)
Browse files

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: default avatarDavid Kaplan <david.kaplan@amd.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250707183316.1349127-4-david.kaplan@amd.com
parent 19c24f7e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1763,4 +1763,7 @@ config ARCH_WANTS_PRE_LINK_VMLINUX
	  An architecture can select this if it provides arch/<arch>/tools/Makefile
	  with .arch.vmlinux.o target to be linked into vmlinux.

config ARCH_HAS_CPU_ATTACK_VECTORS
	bool

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -75,6 +75,7 @@ config X86
	select ARCH_ENABLE_SPLIT_PMD_PTLOCK if (PGTABLE_LEVELS > 2) && (X86_64 || X86_PAE)
	select ARCH_ENABLE_THP_MIGRATION if X86_64 && TRANSPARENT_HUGEPAGE
	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
	select ARCH_HAS_CPU_ATTACK_VECTORS	if CPU_MITIGATIONS
	select ARCH_HAS_CACHE_LINE_SIZE
	select ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION
	select ARCH_HAS_CPU_FINALIZE_INIT