Skip to content

x86/asm: cleanups after toolchain baseline upgrade

[email protected] xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 10 repliesIn review
  2. v15 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86/vmx: remove HAVE_AS_{EPT,VMX}, GAS_VMX_OP() and *_OPCODExen/arch/x86/arch.mk xen/arch/x86/hvm/vmx/vmcs.c xen/arch/x86/include/asm/hvm/vmx/vmx.h+17 -1082 replies
2/6x86/msr: remove HAVE_AS_FSGSBASExen/arch/x86/arch.mk xen/arch/x86/include/asm/msr.h+0 -231 reply
3/6x86/asm: remove HAVE_AS_INVPCIDxen/arch/x86/arch.mk xen/arch/x86/include/asm/invpcid.h+1 -121 reply
4/6x86/emulate: remove HAVE_AS_SSE4_2xen/arch/x86/arch.mk xen/arch/x86/x86_emulate/x86_emulate.c+3 -51 reply
5/6x86/emulate: remove HAVE_AS_RDRAND and HAVE_AS_RDSEEDxen/arch/x86/arch.mk xen/arch/x86/x86_emulate/0fc7.c+5 -122 replies
6/6x86/vmx: rework VMX wrappers to use `asm goto()`xen/arch/x86/include/asm/hvm/vmx/vmx.h+73 -683 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchAndrew Cooper
1/6
2/6R-b
3/6R-b
4/6R-b
5/6
6/6

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/6] x86/asm: cleanups after toolchain baseline upgrade

Patches 1-5 remove various workarounds under HAVE_AS_XXX for older compilers, as the minimally required GCC 5.1 / Binutils 2.25, and Clang 11 natively support instructions worked around in the hypervisor code.

Patch 6 cleans up error handling in VMX asm wrappers using asm goto.

[1] Link to v1: https://lore.kernel.org/xen-devel/[email protected]/
[2] CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/1751006178

Denis Mukhin (6):
x86/vmx: remove HAVE_AS_{EPT,VMX}, GAS_VMX_OP() and *_OPCODE x86/msr: remove HAVE_AS_FSGSBASE
x86/asm: remove HAVE_AS_INVPCID
x86/emulate: remove HAVE_AS_SSE4_2
x86/emulate: remove HAVE_AS_RDRAND and HAVE_AS_RDSEED x86/vmx: rework VMX wrappers to use asm goto()

 xen/arch/x86/arch.mk                   |   9 +-
 xen/arch/x86/hvm/vmx/vmcs.c            |   2 +-
 xen/arch/x86/include/asm/hvm/vmx/vmx.h | 236 ++++++++-----------------
 xen/arch/x86/include/asm/invpcid.h     |  12 +-
 xen/arch/x86/include/asm/msr.h         |  22 ---
 xen/arch/x86/x86_emulate/0fc7.c        |  15 +-
 xen/arch/x86/x86_emulate/x86_emulate.c |   7 +-
 7 files changed, 87 insertions(+), 216 deletions(-)
Signature · 1 line
2.34.1