[CRIU] [PATCH 11/19] dump: Checkpoint the FPU state
Cyrill Gorcunov
gorcunov at openvz.org
Fri Nov 16 09:50:47 EST 2012
The main work is done by parasite_dump_fpu helper.
We prepare the FPU frame in caller code then pass
execution to the parasite which simply yields
fxsave/xsave instrution depending on which features
are supported.
Also our PB allocation for FPU frame has been done
in optimistic model -- ie we do allocate complete
"xsave" frame which incudes the space for YMM registers.
Thus at moment of dumping if we find that no xsave
feature is supported we simply free memory here.
It makes sense since it allows us to have less code
and after all the modern cpus are starting to have
xsave instruction as a common.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
cr-dump.c | 58 ++++++++++++++++++++++++++++++++++------------------------
1 files changed, 34 insertions(+), 24 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-dump-Checkpoint-the-FPU-state.patch
Type: text/x-patch
Size: 4257 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121116/2d6f66ea/attachment-0001.bin>
More information about the CRIU
mailing list