[CRIU] [PATCH 01/21] pstree: Bind CoreEntry to pstree and fill it with registers early

Pavel Emelyanov xemul at parallels.com
Fri May 24 10:42:41 EDT 2013


On 05/24/2013 04:20 PM, Andrey Vagin wrote:
> From: Cyrill Gorcunov <gorcunov at openvz.org>
> 
> When parasite daemon mode will be implemented we get deprived of ability
> to fetch registers at the late moment of dumping as we were, thus just
> bind CoreEntry to pstree item and allocate CoreEntry'ies for every
> thread found, once process tree is in seized state.
> 
> Then immediately fill CoreEntry'ies with registers. We use prctl
> opcode for that but fetch a complete set of registers including
> FPU state, and convert them into protobuf format.
> 
> Zombie tasks remains untouched, we allocate CoreEntry for them
> right at moment of dumping becuase we don't need registers there
> to be written on disk.
> 
> This way get_task_regs no longer need parasite_ctl argument
> and it's zapped.
> 
> Still parasite_ctl has own copy of general registers set but
> this is because we need them to be in cpu native format unlike
> ones kept in CoreEntry.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

Applied


More information about the CRIU mailing list