criu/pie
Cyrill Gorcunov 3eb28f9fbc restore: Restore FPU state
Since at moment we stick with sigreturn restore
we need to form a proper FPU frame and set a pointer
to it inside sigreturn frame.

For this sake we read the FPU image and here are two
cases are possible

 - no fpu data at all -- nothing to restore, simpliest
   case

 - xsave frame is present but the host cpu supports only
   fxsave instruction: we refuse to continue, since it means
   there are no ymm registers on the machine where we're trying
   to restore

 - fxsave frame is present but the host cpu has xsave feature:
   at moment we refuse to continue, requiring complete match
   between "checkpoint and restore hosts", but in real we could
   extend logic and form complete xsave frame from fxsave and
   continue processing

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-12-21 17:35:43 +04:00
..
gen-offsets.sh make: move pie files and build to separated directory 2012-11-22 18:53:29 +04:00
log-simple.c make: move pie files and build to separated directory 2012-11-22 18:53:29 +04:00
Makefile make: cleanup pie build 2012-11-22 18:53:59 +04:00
parasite-head-x86-64.S make: move pie files and build to separated directory 2012-11-22 18:53:29 +04:00
parasite.c signal: fix logig about SIGMAX (v2) 2012-12-04 19:26:54 +04:00
pie.lds.S make: move pie files and build to separated directory 2012-11-22 18:53:29 +04:00
restorer.c restore: Restore FPU state 2012-12-21 17:35:43 +04:00