• Cyrill Gorcunov's avatar
    restore: Restore FPU state · 3eb28f9f
    Cyrill Gorcunov authored
    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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    3eb28f9f
Name
Last commit
Last update
Documentation Loading commit data...
arch/x86 Loading commit data...
include Loading commit data...
pie Loading commit data...
protobuf Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
cpu.c Loading commit data...
cr-check.c Loading commit data...
cr-dump.c Loading commit data...
cr-exec.c Loading commit data...
cr-restore.c Loading commit data...
cr-show.c Loading commit data...
crtools.c Loading commit data...
eventfd.c Loading commit data...
eventpoll.c Loading commit data...
fifo.c Loading commit data...
file-ids.c Loading commit data...
files-reg.c Loading commit data...
files.c Loading commit data...
image.c Loading commit data...
inotify.c Loading commit data...
ipc_ns.c Loading commit data...
kcmp-ids.c Loading commit data...
libnetlink.c Loading commit data...
log.c Loading commit data...
mount.c Loading commit data...
namespaces.c Loading commit data...
net.c Loading commit data...
netfilter.c Loading commit data...
parasite-syscall.c Loading commit data...
pipes.c Loading commit data...
proc_parse.c Loading commit data...
protobuf.c Loading commit data...
pstree.c Loading commit data...
ptrace.c Loading commit data...
rbtree.c Loading commit data...
shmem.c Loading commit data...
signalfd.c Loading commit data...
sk-inet.c Loading commit data...
sk-packet.c Loading commit data...
sk-queue.c Loading commit data...
sk-tcp.c Loading commit data...
sk-unix.c Loading commit data...
sockets.c Loading commit data...
sysctl.c Loading commit data...
tty.c Loading commit data...
util-net.c Loading commit data...
util.c Loading commit data...
uts_ns.c Loading commit data...