Skip to content

x86/altcall: Switch to a simpler scheme

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8x86/altcall: Split alternative-call.h out of alternative.hautomation/eclair_analysis/ECLAIR/deviations.ecl xen/arch/x86/include/asm/alternative-call.h xen/arch/x86/include/asm/alternative.h +3 more+16 -4371 reply
2/8x86/altcall: Rename alternative_branches() to boot_apply_alt_calls()xen/arch/x86/alternative.c xen/arch/x86/include/asm/alternative.h xen/arch/x86/setup.c +1 more+12 -41 reply
3/8x86/alternatives: Rework information passing into nmi_apply_alternatives()xen/arch/x86/alternative.c+9 -71 reply
4/8x86/alternatives: Factor seal_endbr64() out of _apply_alternatives()xen/arch/x86/alternative.c+40 -301 reply
5/8x86/altcall: Introduce new simpler schemexen/arch/x86/alternative.c xen/arch/x86/include/asm/alternative-call.h xen/arch/x86/xen.lds.S+105 -01 reply
6/8xen/livepatch: Support new altcall schemexen/arch/x86/alternative.c xen/common/livepatch.c xen/include/xen/alternative-call.h+70 -23 replies
7/8x86/altcall: Switch to simpler schemexen/arch/x86/alternative.c xen/arch/x86/include/asm/alternative-call.h+8 -102 replies
8/8x86/alternatives: Simplify _apply_alternatives() now altcall is separatexen/arch/x86/alternative.c+10 -841 reply

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchJan BeulichRoger Pau Monné
1/8A-b
2/8A-b
3/8R-b
4/8A-b
5/8R-b
6/8R-b R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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%)
Signature · 1 line
2.39.5