[CRIU] [PATCH 06/14] checkpoint: Add dumping of FPU state
Pavel Emelyanov
xemul at parallels.com
Wed Dec 19 15:26:09 EST 2012
On 12/19/2012 08:31 PM, Cyrill Gorcunov wrote:
>
> 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
Doesn't kernel decide itself what way to get FPU stuff to use?
> 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(-)
>
More information about the CRIU
mailing list