[CRIU] [PATCH 09/14] restore: Restore FPU state
Cyrill Gorcunov
gorcunov at openvz.org
Thu Dec 20 06:55:30 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
- no fpu data at all -- nothing to restore, simpliest
case
- 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 | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pie/restorer.c | 18 ++++++++
2 files changed, 152 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-restore-Restore-FPU-state.patch
Type: text/x-patch
Size: 6021 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121220/3be054dc/attachment-0001.bin>
More information about the CRIU
mailing list