[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 0/6] x86/ucode: Cleanup - Part 1/n


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 19 Mar 2020 15:26:16 +0000
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@xxxxxxxxxx; spf=Pass smtp.mailfrom=Andrew.Cooper3@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Delivery-date: Thu, 19 Mar 2020 15:26:40 +0000
  • Ironport-sdr: 9QttPkrtMrdeKawQXhq2M4u1trwngHKXPjWEFw3crRdAu+EsQFrz4jQNfp9P5M/3k8XZ0gjDkp 6hXDbwJqOJXHPu9y4FqzmM/Gd2KqkFQ2gQ8vlYf2hfCTuaFM7Zy6Dc1YBF9K2LzkFvv8bDpxB1 LF0muTGj2y/gqLDjJTRHZ2lqlT3CaAaWWpxpZ4e2pPz42oiRXBhuDuDTlUwBfk4chQXm7Y78mA 5uT1pJuDxuAngnVQKS8rs9NadWd2OjGk0kfd1RY7W77trq4oktA/Xy3h1bWVOTbMe7CjUPuE2i RPc=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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%)

-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.