[CRIU] [PATCH 06/14] checkpoint: Add dumping of FPU state
Cyrill Gorcunov
gorcunov at openvz.org
Wed Dec 19 11:31:26 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 | 78 ++++++++++++++++++++++++++++++++++++++++++-----------
protobuf/core.proto | 10 +++++++
2 files changed, 72 insertions(+), 16 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-checkpoint-Add-dumping-of-FPU-state.patch
Type: text/x-patch
Size: 5217 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121219/4fb2d202/attachment.bin>
More information about the CRIU
mailing list