[PATCH v2 0/5] x86/cpu: Refactor identify_cpu()
Ihor Solodrai <[email protected]>
| Newsgroups | org.kernel.vger.bpf,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
This series refactors identify_cpu() machinery on x86 and then implements a fix for a bug when cpu capabilities are temporarily cleared within an interruptable window. For more details and discussion see the relevant bug report [1] and patch #5. Suggested-by: Borislav Petkov <[email protected]> Signed-off-by: Ihor Solodrai <[email protected]> [1] https://lore.kernel.org/bpf/[email protected]/ --- v1->v2: * Rewrite commit messages to fit more conventional structure (Boris) * Drop identify_cpu_32() helper, it's unnecessary (Boris) * New patch (#2): now early_identify_cpu() resets boot_cpu_data through init_cpu_info() as well * The boot CPU reset is now skipped on 32-bit too (sashiko) v1: https://lore.kernel.org/bpf/[email protected]/ --- Ihor Solodrai (5): x86/cpu: Factor init_cpu_info() out of identify_cpu() x86/cpu: Initialize boot CPU cpuinfo defaults early x86/cpu: Inline generic_identify() into identify_cpu() x86/cpu: Move 32-bit SEP setup into identify_cpu() x86/cpu: Don't transiently clear the boot CPU's capabilities arch/x86/kernel/cpu/common.c | 92 +++++++++++++++++------------------- 1 file changed, 44 insertions(+), 48 deletions(-) base-commit: db2ddb87143519e20a95aa36c60b36107b736a58 -- 2.55.0