[CRIU] [PATCHv1 04/26] sigframe: prepare macro helpers for two sigframes

Laurent Dufour ldufour at linux.vnet.ibm.com
Thu Jun 16 09:25:07 PDT 2016


On 16/06/2016 12:53, Dmitry Safonov wrote:
> As on x86 compat/native sigframe differ, I need to generalize/modify
> sigframe macro helpers having in mind:
> - SIGFRAME_OFFSET differ between native/compat tasks, so it takes
>   sigframe parameter now, which will be used in following patches
>   (also renamed it in RT_SIGFRAME_OFFSET to complement other macros)
> - RT_SIGFRAME_FPU is now pointer, because each caller takes result's
>   address with &RT_SIGFRAME_FPU(...)
> - sigreturn_prep_fpu_frame now takes rt_sigframe parameter, as
>   address of fpu_state pointer on x86 will depend on native/compat
>   frame type, so I check local sigframe's type and count address
>   for rsigframe. (See in the very next commit).
> 
> Cc: Laurent Dufour <ldufour at linux.vnet.ibm.com>
> Cc: Christopher Covington <cov at codeaurora.org>
> Cc: Cyrill Gorcunov <gorcunov at openvz.org>
> Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>

Reviewed-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>



More information about the CRIU mailing list