linux-user: i386/signal: support XSAVE/XRSTOR for signal frame fpstate
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | linux-user: i386/signal: move fpstate at the end of the 32-bit frameslinux-user/ | +9 | 1 reply | |
| 2/3 | linux-user: i386/signal: support FXSAVE fpstate on 32-bit emulationlinux-user/ | +77 | 1 reply | |
| 3/3 | linux-user: i386/signal: support XSAVE/XRSTOR for signal frame fpstatelinux-user/ target/ target/ +1 more | +138 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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