Skip to content

x86/alternatives: Adjust all insn-relative fields

Andrew Cooper xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 4 repliesIn review
  2. v35 patches 10 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/emul: Introduce x86_decode_lite()xen/arch/x86/x86_emulate/Makefile xen/arch/x86/x86_emulate/decode-lite.c xen/arch/x86/x86_emulate/x86_emulate.h+351 -02 replies
2/5tests/x86: Introduce a userspace test harness for x86_decode_lite()tools/tests/Makefile tools/tests/x86-decode-lite/.gitignore tools/tests/x86-decode-lite/Makefile +4 more+973 -01 reply
3/5x86/alternative: Walk all replacements during self testsxen/arch/x86/alternative.c+52 -00 replies
4/5x86/alternative: Relocate all insn-relative fieldsxen/arch/x86/alternative.c+41 -90 replies
5/5x86/spec-ctrl: Introduce and use DO_COND_BHB_SEQxen/arch/x86/hvm/vmx/entry.S xen/arch/x86/include/asm/spec_ctrl_asm.h+30 -250 replies

Reviews trailers per patch

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

PatchJan BeulichODIN Thomas
SeriesT-b
1/5R-b
2/5A-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/5] x86/alternatives: Adjust all insn-relative fields

Alternatives have had a reasonably severe restriction since their introduction. This has been the source of several bugs, and several inefficiencies particularly in the speculative safety paths.

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

Andrew Cooper (5):
x86/emul: Introduce x86_decode_lite()
tests/x86: Introduce a userspace test harness for x86_decode_lite() x86/alternative: Walk all replacements during self tests x86/alternative: Relocate all insn-relative fields x86/spec-ctrl: Introduce and use DO_COND_BHB_SEQ

 tools/tests/Makefile                      |   1 +
 tools/tests/x86-decode-lite/.gitignore    |   1 +
 tools/tests/x86-decode-lite/Makefile      |  56 ++
 tools/tests/x86-decode-lite/insns.S       | 711 ++++++++++++++++++++++
 tools/tests/x86-decode-lite/macro-magic.h |  62 ++
 tools/tests/x86-decode-lite/main.c        | 113 ++++
 tools/tests/x86-decode-lite/x86-emulate.h |  29 +
 xen/arch/x86/alternative.c                | 102 +++-
 xen/arch/x86/hvm/vmx/entry.S              |  12 +-
 xen/arch/x86/include/asm/spec_ctrl_asm.h  |  43 +-
 xen/arch/x86/x86_emulate/Makefile         |   6 +
 xen/arch/x86/x86_emulate/decode-lite.c    | 331 ++++++++++
 xen/arch/x86/x86_emulate/x86_emulate.h    |  14 +
 13 files changed, 1447 insertions(+), 34 deletions(-)
 create mode 100644 tools/tests/x86-decode-lite/.gitignore
 create mode 100644 tools/tests/x86-decode-lite/Makefile
 create mode 100644 tools/tests/x86-decode-lite/insns.S
 create mode 100644 tools/tests/x86-decode-lite/macro-magic.h
 create mode 100644 tools/tests/x86-decode-lite/main.c
 create mode 100644 tools/tests/x86-decode-lite/x86-emulate.h
 create mode 100644 xen/arch/x86/x86_emulate/decode-lite.c
Signature · 1 line
2.39.5