From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Roger Pau Monné" <roger@xenproject.org>,
"Teddy Astie" <teddy.astie@vates.tech>
Subject: [PATCH v3 0/5] x86/alternatives: Adjust all insn-relative fields
Date: Mon, 3 Aug 2026 08:20:01 +0100 [thread overview]
Message-ID: <20260803072006.9678-1-andrew.cooper3@citrix.com> (raw)
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/2724019865
v3:
* Run through Gitlab CI.
* Fix up Eclair issues, Clang issues, and older-binutils issues.
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 | 703 ++++++++++++++++++++++
tools/tests/x86-decode-lite/macro-magic.h | 62 ++
tools/tests/x86-decode-lite/main.c | 111 ++++
tools/tests/x86-decode-lite/x86-emulate.h | 27 +
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 | 330 ++++++++++
xen/arch/x86/x86_emulate/x86_emulate.h | 14 +
13 files changed, 1434 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
--
2.39.5
next reply other threads:[~2026-08-03 7:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 7:20 Andrew Cooper [this message]
2026-08-03 7:20 ` [PATCH v3 1/5] x86/emul: Introduce x86_decode_lite() Andrew Cooper
2026-08-03 9:14 ` Andrew Cooper
2026-08-03 15:26 ` Jan Beulich
2026-08-04 15:39 ` Jan Beulich
2026-08-04 18:56 ` Andrew Cooper
2026-08-05 6:24 ` Jan Beulich
2026-08-03 7:20 ` [PATCH v3 2/5] tests/x86: Introduce a userspace test harness for x86_decode_lite() Andrew Cooper
2026-08-03 16:03 ` Jan Beulich
2026-08-04 19:37 ` Andrew Cooper
2026-08-05 6:45 ` Jan Beulich
2026-08-03 7:20 ` [PATCH v3 3/5] x86/alternative: Walk all replacements during self tests Andrew Cooper
2026-08-03 7:20 ` [PATCH v3 4/5] x86/alternative: Relocate all insn-relative fields Andrew Cooper
2026-08-03 7:20 ` [PATCH v3 5/5] x86/spec-ctrl: Introduce and use DO_COND_BHB_SEQ Andrew Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260803072006.9678-1-andrew.cooper3@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=roger@xenproject.org \
--cc=teddy.astie@vates.tech \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.