Skip to content

x86: Always use eager-fpu

Ross Lagerwall xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 5 repliesIn review
  2. v18 patches 17 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86/domain: Ensure a vCPU's FPU is reset earlyxen/arch/x86/domain.c+2 -02 replies
2/9x86: Always use eager-fpudocs/misc/hypfs-paths.pandoc docs/misc/xen-command-line.pandoc xen/arch/x86/i387.c +2 more+6 -940 replies
3/9x86/vmx: Remove lazy FPU supportxen/arch/x86/hvm/vmx/vmcs.c xen/arch/x86/hvm/vmx/vmx.c xen/arch/x86/hvm/vmx/vvmx.c +1 more+5 -900 replies
4/9x86/svm: Remove lazy FPU supportxen/arch/x86/hvm/svm/nestedsvm.c xen/arch/x86/hvm/svm/svm.c xen/arch/x86/hvm/svm/vmcb.c +1 more+4 -1540 replies
5/9x86/traps: Remove lazy FPU supportxen/arch/x86/i387.c xen/arch/x86/include/asm/i387.h xen/arch/x86/pv/misc-hypercalls.c +1 more+14 -341 reply
6/9x86: Remove fully_eager_fpuxen/arch/x86/domain.c xen/arch/x86/hvm/emulate.c xen/arch/x86/i387.c +4 more+13 -510 replies
7/9x86: Remove fpu_initialised/fpu_dirtyxen/arch/x86/domctl.c xen/arch/x86/hvm/emulate.c xen/arch/x86/hvm/hvm.c +7 more+15 -822 replies
8/9x86/xstate: Stop tracking nonlazy xstate usexen/arch/x86/domctl.c xen/arch/x86/hvm/hvm.c xen/arch/x86/i387.c +3 more+3 -230 replies
9/9x86: Cleanup cr0.TS flag handlingxen/arch/x86/cpu/common.c xen/arch/x86/hvm/emulate.c xen/arch/x86/i387.c +2 more+4 -350 replies

Reviews trailers per patch

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

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

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/9] x86: Always use eager-fpu

Remove the eager-fpu option and cleanup the code accordingly.

The first patch is a bugfix, new in v2.
The second patch removes the option and includes the justification. The rest of the patches are cleanup and mostly have no functional change.

I measured a 0.7% geometric mean improvement with this series across a few different benchmarks (Linux VMs on an AMD host). I'm not sure the improvement is statistically significant, but it likely indicates it is no worse than before.

A previous series to do this was submitted here:
https://lore.kernel.org/xen-devel/[email protected]/

With the exception of patch 5, I haven't kept authorship and sign-offs since this is a reimplementation, albeit ending up at a similar place.

Thanks,
Ross

Ross Lagerwall (8):
x86/domain: Ensure a vCPU's FPU is reset early
x86: Always use eager-fpu
x86/vmx: Remove lazy FPU support
x86/svm: Remove lazy FPU support
x86: Remove fully_eager_fpu
x86: Remove fpu_initialised/fpu_dirty
x86/xstate: Stop tracking nonlazy xstate use
x86: Cleanup cr0.TS flag handling

Wei Liu (1):
x86/traps: Remove lazy FPU support

 docs/misc/hypfs-paths.pandoc             |   2 -
 docs/misc/xen-command-line.pandoc        |   7 +-
 xen/arch/x86/cpu/common.c                |   3 -
 xen/arch/x86/domain.c                    |   4 +-
 xen/arch/x86/domctl.c                    |   4 +-
 xen/arch/x86/hvm/emulate.c               |  38 +-------
 xen/arch/x86/hvm/hvm.c                   |  16 ++--
 xen/arch/x86/hvm/svm/nestedsvm.c         |  67 +-------------
 xen/arch/x86/hvm/svm/svm.c               |  81 +----------------
 xen/arch/x86/hvm/svm/vmcb.c              |   4 +-
 xen/arch/x86/hvm/vlapic.c                |   3 -
 xen/arch/x86/hvm/vmx/vmcs.c              |   8 +-
 xen/arch/x86/hvm/vmx/vmx.c               |  70 +--------------
 xen/arch/x86/hvm/vmx/vvmx.c              |  15 +---
 xen/arch/x86/i387.c                      | 109 ++---------------------
 xen/arch/x86/include/asm/domain.h        |   6 --
 xen/arch/x86/include/asm/hvm/hvm.h       |   3 -
 xen/arch/x86/include/asm/hvm/svm-types.h |   6 --
 xen/arch/x86/include/asm/hvm/vmx/vmcs.h  |   2 -
 xen/arch/x86/include/asm/i387.h          |   4 +-
 xen/arch/x86/include/asm/spec_ctrl.h     |   1 -
 xen/arch/x86/include/asm/xstate.h        |  17 +---
 xen/arch/x86/pv/misc-hypercalls.c        |   3 +-
 xen/arch/x86/spec_ctrl.c                 |  88 +-----------------
 xen/arch/x86/traps.c                     |  20 +++--
 xen/arch/x86/xstate.c                    |  24 ++---
 xen/common/domain.c                      |   2 -
 xen/common/efi/runtime.c                 |   4 +-
 xen/include/xen/sched.h                  |   4 -
 29 files changed, 59 insertions(+), 556 deletions(-)
Signature · 1 line
2.53.0