• Cyrill Gorcunov's avatar
    checkpoint: Add dumping of FPU state · c1f7ab21
    Cyrill Gorcunov authored
    The dumping of FPU state is done with help of ptrace
    facility. There are two cases which we need to handle
    depending on which features are available on host machine
    
    1) The dump via ptrace(PTRACE_GETFPREGS ...)
    
       In this case the kernel will use fxsave approach
       inside the kenrel and provides us back the data
       encoded in i387_fxsave_struct format.
    
    2) The dump via ptrace(PTRACE_GETREGSET ...)
    
       In this case the kernel will use xsave approach
       inside the kernel and provides us back the data
       encoded in xsave_struct format.
    
    In any case we decode data and save it in protobuf format.
    This is why core.proto file has been extended to keep new
    entries.
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    c1f7ab21
core.proto 2.48 KB