x86/microcode: Add microcode loader debugging functionality
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 20 Aug 2025 13:50:43 +0000 (15:50 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 4 Sep 2025 14:15:19 +0000 (16:15 +0200)
commit43181a47263dd9f2bee0afd688a841b09f9b7d12
treee247c277258fbe184bc8ec92734fcefb374ed9d8
parent632ff61706473127cdc3b779bf24d368e3856ab3
x86/microcode: Add microcode loader debugging functionality

Instead of adding ad-hoc debugging glue to the microcode loader each
time I need it, add debugging functionality which is not built by
default.

Simulate all patch handling the loader does except the actual loading of
the microcode patch into the hardware.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250820135043.19048-3-bp@kernel.org
Documentation/admin-guide/kernel-parameters.txt
arch/x86/Kconfig
arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/core.c
arch/x86/kernel/cpu/microcode/internal.h