[CRIU] [rfc 4/4] pstree: Allocate core entries in pstree item and fetch regs earlier
Pavel Emelyanov
xemul at parallels.com
Fri Feb 22 06:49:46 EST 2013
On 02/22/2013 03:47 PM, Cyrill Gorcunov wrote:
> On Fri, Feb 22, 2013 at 03:40:28PM +0400, Pavel Emelyanov wrote:
>> On 02/20/2013 07:22 PM, Cyrill Gorcunov wrote:
>>>
>>> Parasite as a daemon will require the registers to be fetched
>>> early before we enter such weird (a bit) mode. Thus bound core
>>> entries to pstree item and fetch registers once task and threads
>>> are seized.
>>
>> You can't do it this way, because once a child of seized task dies,and the
>> latter one receives sigchild you'd have to go the let-the-task-handle-signal
>> code in ptrace and registers would change.
>
> Hmm, still we can't fetch regs once code moves to parasite daemon mode, thus
> can we seize task, then inetrrupt via ptrace and save regirsters?
We should seize _all_ the tasks, and only then fetch their registers. When
nobody moves. _Nobody_.
> .
>
More information about the CRIU
mailing list