[0/6] x86/ucode: Cleanup - Part 1/n
mbox series

Message ID 20200319152622.31758-1-andrew.cooper3@citrix.com
Headers show
Series
  • x86/ucode: Cleanup - Part 1/n
Related show

Message

Andrew Cooper March 19, 2020, 3:26 p.m. UTC
I got sad at the state of microcode handling while investigating an issue.
This is some preliminary cleanup, with the only practical changes in patch 4.

Andrew Cooper (6):
  x86/ucode: Remove declarations for non-external functions
  x86/ucode: Move microcode into its own directory
  x86/ucode: Move interface from processor.h to microcode.h
  x86/ucode: Rationalise startup and family/model checks
  x86/ucode: Alter ops->free_patch() to free the entire patch
  x86/ucode: Make struct microcode_patch opaque

 xen/arch/x86/Makefile                              |  3 --
 xen/arch/x86/acpi/power.c                          |  1 +
 xen/arch/x86/cpu/Makefile                          |  1 +
 xen/arch/x86/cpu/microcode/Makefile                |  3 ++
 .../x86/{microcode_amd.c => cpu/microcode/amd.c}   | 54 ++++++++-----------
 xen/arch/x86/{microcode.c => cpu/microcode/core.c} | 62 +++++++++++-----------
 .../{microcode_intel.c => cpu/microcode/intel.c}   | 47 ++++++----------
 .../x86/cpu/microcode/private.h}                   | 33 ++++--------
 xen/arch/x86/efi/efi-boot.h                        |  2 +-
 xen/arch/x86/platform_hypercall.c                  |  1 +
 xen/arch/x86/setup.c                               |  1 +
 xen/arch/x86/smpboot.c                             |  1 +
 xen/arch/x86/spec_ctrl.c                           |  1 -
 xen/include/asm-x86/microcode.h                    | 36 +++----------
 xen/include/asm-x86/processor.h                    |  9 ----
 15 files changed, 93 insertions(+), 162 deletions(-)
 create mode 100644 xen/arch/x86/cpu/microcode/Makefile
 rename xen/arch/x86/{microcode_amd.c => cpu/microcode/amd.c} (95%)
 rename xen/arch/x86/{microcode.c => cpu/microcode/core.c} (96%)
 rename xen/arch/x86/{microcode_intel.c => cpu/microcode/intel.c} (92%)
 copy xen/{include/asm-x86/microcode.h => arch/x86/cpu/microcode/private.h} (57%)