[CRIU] [PATCH 06/14] checkpoint: Add dumping of FPU state

Cyrill Gorcunov gorcunov at openvz.org
Thu Dec 20 06:55:27 EST 2012


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: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c           | 111 ++++++++++++++++++++++++++++++++++++++--------------
 protobuf/core.proto |  10 +++++
 2 files changed, 91 insertions(+), 30 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-checkpoint-Add-dumping-of-FPU-state.patch
Type: text/x-patch
Size: 6329 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121220/bc128998/attachment-0001.bin>


More information about the CRIU mailing list