mbox series

[v3,0/5] x86/xen-ucode: Introduce --force option

Message ID 20240430124709.865183-1-fouad.hilly@cloud.com (mailing list archive)
Headers show
Series x86/xen-ucode: Introduce --force option | expand

Message

Fouad Hilly April 30, 2024, 12:47 p.m. UTC
Refactor and introduce --force option to xen-ucode, which skips microcode
version check when updating x86 CPU micocode. A new hypercall introduced
with flags field to facilitate the new option and allow for future flags
as needed.
This change is required to enable developers to load ucode that is the same version as the
one already loaded for testing. On top of that Intel is introducing "min rev", which will
require a mechanism to override version checks

Fouad Hilly (5):
  x86: Update x86 low level version check of microcode
  x86: Refactor microcode_update() hypercall with flags
  x86: Add usage() to print out usage message
  x86: Use getopt to handle command line args
  Add --force option to xen-ucode to override microcode version check

 tools/include/xenctrl.h              |  3 +-
 tools/libs/ctrl/xc_misc.c            | 12 +++---
 tools/misc/xen-ucode.c               | 61 ++++++++++++++++++++++------
 xen/arch/x86/cpu/microcode/amd.c     |  7 ++--
 xen/arch/x86/cpu/microcode/core.c    | 15 +++++--
 xen/arch/x86/cpu/microcode/intel.c   | 10 ++---
 xen/arch/x86/include/asm/microcode.h |  3 +-
 xen/arch/x86/platform_hypercall.c    | 12 +++++-
 xen/include/public/platform.h        | 14 +++++++
 9 files changed, 103 insertions(+), 34 deletions(-)