mbox series

[v2,0/6] x86/asm: cleanups after toolchain baseline upgrade

Message ID 20250403182250.3329498-1-dmukhin@ford.com (mailing list archive)
Headers show
Series x86/asm: cleanups after toolchain baseline upgrade | expand

Message

Denis Mukhin April 3, 2025, 6:22 p.m. UTC
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/20250401222105.79309-1-dmukhin@ford.com/
[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(-)