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. v2 Latest7 patches 9 repliesIn review
  2. v16 patches 16 repliesSuperseded

Changes in v2 from the cover letter

Most work is in patch 1 and the new patch 2 (userspace harness). Other patches with minor or no change.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86: Introduce x86_decode_lite()xen/arch/x86/x86_emulate/Makefile xen/arch/x86/x86_emulate/decode-lite.c xen/arch/x86/x86_emulate/private.h +1 more+333 -03 replies
2/7tests/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+940 -03 replies
3/7x86/alternative: Walk all replacements during self testsxen/arch/x86/alternative.c+52 -00 replies
4/7x86/alternative: Indent the relocation logicxen/arch/x86/alternative.c+63 -610 replies
5/7x86/alternative: Replace a continue with a gotoxen/arch/x86/alternative.c+10 -10 replies
6/7x86/alternative: Relocate all insn-relative fieldsxen/arch/x86/alternative.c+38 -81 reply
7/7x86/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 -251 reply

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJan BeulichFrediano Ziglio
SeriesR-b
1/7
2/7
3/7R-b
4/7A-b
5/7A-b
6/7R-b
7/7R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/7] 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.

v2:
Most work is in patch 1 and the new patch 2 (userspace harness). Other patches with minor or no change.

Andrew Cooper (7):
x86: 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: Indent the relocation logic x86/alternative: Replace a continue with a goto 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      |  45 ++
 tools/tests/x86-decode-lite/insns.S       | 703 ++++++++++++++++++++++
 tools/tests/x86-decode-lite/macro-magic.h |  52 ++
 tools/tests/x86-decode-lite/main.c        | 111 ++++
 tools/tests/x86-decode-lite/x86-emulate.h |  27 +
 xen/arch/x86/alternative.c                | 213 +++++--
 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    | 311 ++++++++++
 xen/arch/x86/x86_emulate/private.h        |   2 +
 xen/arch/x86/x86_emulate/x86_emulate.h    |  14 +
 14 files changed, 1456 insertions(+), 85 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