[PATCH v4 0/4] x86/xen-ucode: Introduce --force option

Fouad Hilly posted 4 patches 5 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20240528152943.3915760-1-fouad.hilly@cloud.com
There is a newer version of this series
docs/misc/xen-command-line.pandoc    |  7 +---
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    | 20 +++++----
xen/arch/x86/cpu/microcode/intel.c   |  4 --
xen/arch/x86/cpu/microcode/private.h |  2 -
xen/arch/x86/include/asm/microcode.h |  3 +-
xen/arch/x86/platform_hypercall.c    | 13 +++++-
xen/include/public/platform.h        | 14 +++++++
11 files changed, 97 insertions(+), 49 deletions(-)
[PATCH v4 0/4] x86/xen-ucode: Introduce --force option
Posted by Fouad Hilly 5 months, 3 weeks ago
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 or downgrade for testing.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>

Fouad Hilly (4):
  x86/ucode: Introduce PF_microcode_update2 with flags parameter
  x86/ucode: refactor xen-ucode to utilize getopt
  x86/ucode: Introduce --force option to xen-ucode to force skipping
    microcode version check
  x86/ucode: Utilize ucode_force and remove opt_ucode_allow_same

 docs/misc/xen-command-line.pandoc    |  7 +---
 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    | 20 +++++----
 xen/arch/x86/cpu/microcode/intel.c   |  4 --
 xen/arch/x86/cpu/microcode/private.h |  2 -
 xen/arch/x86/include/asm/microcode.h |  3 +-
 xen/arch/x86/platform_hypercall.c    | 13 +++++-
 xen/include/public/platform.h        | 14 +++++++
 11 files changed, 97 insertions(+), 49 deletions(-)

-- 
2.42.0