All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Add Kconfig option to remove microcode loading support
@ 2025-11-12 16:22 Alejandro Vallejo
  2025-11-12 16:22 ` [PATCH 1/4] x86: Split out AMD-specific code to be executed without ucode loading Alejandro Vallejo
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Alejandro Vallejo @ 2025-11-12 16:22 UTC (permalink / raw)
  To: xen-devel
  Cc: Alejandro Vallejo, Jan Beulich, Andrew Cooper,
	Roger Pau Monné, Daniel P. Smith,
	Marek Marczykowski-Górecki

Hi,

The series is mostly a refactor between everything needed to load microcode and
the bare minimum to probe the current microcode revision.

The Kconfig option keeps the reading of microcode rev data around, as it's very
relevant for security and debuggability in order to deduce which erratas apply
to the current platform.

The idea is to move everything that must still be compiled with !CONFIG_UCODE
onto {,amd-,intel-}base.c, then remove everything else conditionally at the
Makefile level.

Renaming files (e.g: s/base/core/ and s/core/common/) would better reflect
post-series reality, but it'd be annoying for later backports in this general
area.

Cheers,
Alejandro

Alejandro Vallejo (4):
  x86: Split out AMD-specific code to be executed without ucode loading
  x86: Split out Intel-specific code to be executed without ucode
    loading
  x86: Split out early_microcode_load() and microcode_load_one()
  x86: Add Kconfig option to disable microcode loading

 xen/arch/x86/Kconfig                    | 12 ++++
 xen/arch/x86/cpu/microcode/Makefile     |  9 ++-
 xen/arch/x86/cpu/microcode/amd-base.c   | 55 +++++++++++++++++++
 xen/arch/x86/cpu/microcode/amd.c        | 55 ++-----------------
 xen/arch/x86/cpu/microcode/amd.h        | 15 +++++
 xen/arch/x86/cpu/microcode/base.c       | 73 +++++++++++++++++++++++++
 xen/arch/x86/cpu/microcode/core.c       | 58 +-------------------
 xen/arch/x86/cpu/microcode/intel-base.c | 50 +++++++++++++++++
 xen/arch/x86/cpu/microcode/intel.c      | 56 +++----------------
 xen/arch/x86/cpu/microcode/intel.h      | 16 ++++++
 xen/arch/x86/cpu/microcode/private.h    | 14 +++++
 xen/arch/x86/efi/efi-boot.h             |  2 +-
 xen/arch/x86/platform_hypercall.c       |  2 +
 13 files changed, 259 insertions(+), 158 deletions(-)
 create mode 100644 xen/arch/x86/cpu/microcode/amd-base.c
 create mode 100644 xen/arch/x86/cpu/microcode/amd.h
 create mode 100644 xen/arch/x86/cpu/microcode/base.c
 create mode 100644 xen/arch/x86/cpu/microcode/intel-base.c
 create mode 100644 xen/arch/x86/cpu/microcode/intel.h


base-commit: e00c1673992e07ed31e9c60fefa8d053491abbe6
-- 
2.43.0



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-11-18 11:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12 16:22 [PATCH 0/4] Add Kconfig option to remove microcode loading support Alejandro Vallejo
2025-11-12 16:22 ` [PATCH 1/4] x86: Split out AMD-specific code to be executed without ucode loading Alejandro Vallejo
2025-11-12 16:22 ` [PATCH 2/4] x86: Split out Intel-specific " Alejandro Vallejo
2025-11-12 16:22 ` [PATCH 3/4] x86: Split out early_microcode_load() and microcode_load_one() Alejandro Vallejo
2025-11-12 16:22 ` [PATCH 4/4] x86: Add Kconfig option to disable microcode loading Alejandro Vallejo
2025-11-13  7:36 ` [PATCH 0/4] Add Kconfig option to remove microcode loading support Jan Beulich
2025-11-13 12:12   ` Alejandro Vallejo
2025-11-13  8:50 ` Andrew Cooper
2025-11-13 12:11   ` Alejandro Vallejo
2025-11-17 16:55   ` Jan Beulich
2025-11-18 10:19     ` Alejandro Vallejo
2025-11-18 11:22       ` Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.