[PATCH 0/8] x86/altcall: Switch to a simpler scheme

Andrew Cooper posted 8 patches 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250423010237.1528582-1-andrew.cooper3@citrix.com
.../eclair_analysis/ECLAIR/deviations.ecl     |   4 +-
xen/arch/x86/alternative.c                    | 267 ++++++++++--------
.../asm/{alternative.h => alternative-call.h} | 179 +-----------
xen/arch/x86/include/asm/alternative.h        | 263 -----------------
xen/arch/x86/include/asm/hvm/hvm.h            |   2 +-
xen/arch/x86/setup.c                          |   3 +-
xen/arch/x86/xen.lds.S                        |   4 +
xen/common/core_parking.c                     |   4 +-
xen/common/livepatch.c                        |  58 ++++
xen/include/xen/alternative-call.h            |  24 +-
10 files changed, 252 insertions(+), 556 deletions(-)
copy xen/arch/x86/include/asm/{alternative.h => alternative-call.h} (63%)
[PATCH 0/8] x86/altcall: Switch to a simpler scheme
Posted by Andrew Cooper 8 months ago
See patch 7 for details.  This simplifies _apply_alternatives() specifically
by removing a special and quite complicated case, and encodes the metadata
about altcalls differently and more efficiently.

https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/1780872355

Andrew Cooper (8):
  x86/altcall: Split alternative-call.h out of alternative.h
  x86/altcall: Rename alternative_branches() to boot_apply_alt_calls()
  x86/alternatives: Rework information passing into
    nmi_apply_alternatives()
  x86/alternatives: Factor seal_endbr64() out of _apply_alternatives()
  x86/altcall: Introduce new simpler scheme
  xen/livepatch: Support new altcall scheme
  x86/altcall: Switch to simpler scheme
  x86/alternatives: Simplify _apply_alternatives() now altcall is
    separate

 .../eclair_analysis/ECLAIR/deviations.ecl     |   4 +-
 xen/arch/x86/alternative.c                    | 267 ++++++++++--------
 .../asm/{alternative.h => alternative-call.h} | 179 +-----------
 xen/arch/x86/include/asm/alternative.h        | 263 -----------------
 xen/arch/x86/include/asm/hvm/hvm.h            |   2 +-
 xen/arch/x86/setup.c                          |   3 +-
 xen/arch/x86/xen.lds.S                        |   4 +
 xen/common/core_parking.c                     |   4 +-
 xen/common/livepatch.c                        |  58 ++++
 xen/include/xen/alternative-call.h            |  24 +-
 10 files changed, 252 insertions(+), 556 deletions(-)
 copy xen/arch/x86/include/asm/{alternative.h => alternative-call.h} (63%)

-- 
2.39.5