[CRIU] [PATCH 17/19] restore: Add ability to restore FPU data

Cyrill Gorcunov gorcunov at openvz.org
Fri Nov 16 09:50:53 EST 2012


This patch adds ability to restore FPU data from the image.

At moment only support for fxsr is implemented, ie the extended
YMM registers are not yet restored. This will be addressed in further
patches.

In short what we've done here:

 - we check if the image has properly dumped FPU data
 - if the data is present we simply fill fxrstor frame
   and pass it to rt_sigreturn call

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>

restore: Don't fail if FPU xsave mode is supported

The xsave mode is not yet implemented so don't fail
in such case but simply omit FPU restoration.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-restore.c |  110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 restorer.c   |    8 ++++
 2 files changed, 118 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0017-restore-Add-ability-to-restore-FPU-data.patch
Type: text/x-patch
Size: 4997 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121116/241dd4e1/attachment-0001.bin>


More information about the CRIU mailing list