[CRIU] [PATCH 11/22] dump: Checkpoint the FPU state

Cyrill Gorcunov gorcunov at openvz.org
Wed Nov 21 16:05:52 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/20121122/82e1440d/attachment-0001.bin>


More information about the CRIU mailing list