]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/mm: Add INVLPGB feature and Kconfig entry
authorRik van Riel <riel@surriel.com>
Wed, 19 Mar 2025 10:08:26 +0000 (11:08 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 10:08:52 +0000 (11:08 +0100)
commit767ae437a32d644786c0779d0d54492ff9cbe574
tree75517565a260401f86e9098d65be5cdd5631edef
parent4a02ed8e1cc33acd04d8f5b89751d3bbb6be35d8
x86/mm: Add INVLPGB feature and Kconfig entry

In addition, the CPU advertises the maximum number of pages that can be
shot down with one INVLPGB instruction in CPUID. Save that information
for later use.

  [ bp: use cpu_has(), typos, massage. ]

Signed-off-by: Rik van Riel <riel@surriel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250226030129.530345-3-riel@surriel.com
arch/x86/Kconfig.cpu
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/disabled-features.h
arch/x86/include/asm/tlbflush.h
arch/x86/kernel/cpu/amd.c