Skip to content

linux-user: i386/signal: support XSAVE/XRSTOR for signal frame fpstate

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3linux-user: i386/signal: move fpstate at the end of the 32-bit frameslinux-user/i386/signal.c+9 -21 reply
2/3linux-user: i386/signal: support FXSAVE fpstate on 32-bit emulationlinux-user/i386/signal.c+77 -521 reply
3/3linux-user: i386/signal: support XSAVE/XRSTOR for signal frame fpstatelinux-user/i386/signal.c target/i386/cpu.c target/i386/cpu.h +1 more+138 -461 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/3R-b
2/3R-b
3/3R-b

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

Read the v1 thread

Cover letter [PATCH 0/3] linux-user: i386/signal: support XSAVE/XRSTOR for signal frame fpstate

These three patches add support for x86 XSAVE/XRSTOR signal frames in linux-user emulation. This ensures that signals save and restore the extended save states as well.

For 32-bit emulation not even FXSAVE was used, even though the signal frame supports it. Therefore, patch 2 extends 32-bit emulation to use FXSAVE/FXRSTOR if the FXSR bit is set in CPUID. If it is not set, QEMU will use FSAVE/FRSTOR as usual; note that recent builds of glibc most likely will check for FXSR bit even on 32-bit builds, and will refuse to start with a "CPU ISA level is lower than required" error.

Paolo

Paolo Bonzini (3):
linux-user: i386/signal: move fpstate at the end of the 32-bit frames
linux-user: i386/signal: support FXSAVE fpstate on 32-bit emulation
linux-user: i386/signal: support XSAVE/XRSTOR for signal frame fpstate

 linux-user/i386/signal.c     | 227 ++++++++++++++++++++++++++---------
 target/i386/cpu.c            |   2 +-
 target/i386/cpu.h            |   3 +
 target/i386/tcg/fpu_helper.c |  64 ++++++----
 4 files changed, 210 insertions(+), 86 deletions(-)
Signature · 1 line
2.37.3