[CRIU] [PATCH 09/13] restore: Restore FPU state
Cyrill Gorcunov
gorcunov at openvz.org
Fri Dec 14 09:19:31 EST 2012
Since at moment we stick with sigreturn restore
we need to form a proper FPU frame and set a pointer
to it inside sigreturn frame.
For this sake we read the FPU image and here are two
cases are possible
- xsave frame is present but the host cpu supports only
fxsave instruction: we refuse to continue, since it means
there are no ymm registers on the machine where we're trying
to restore
- fxsave frame is present but the host cpu has xsave feature:
at moment we refuse to continue, requiring complete match
between "checkpoint and restore hosts", but in real we could
extend logic and form complete xsave frame from fxsave and
continue processing
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
cr-restore.c | 120 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pie/restorer.c | 7 ++++
2 files changed, 127 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-restore-Restore-FPU-state.patch
Type: text/x-patch
Size: 5408 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121214/1f1f04f7/attachment.bin>
More information about the CRIU
mailing list