[CRIU] [PATCH 6/8] pie: x86-32 -- Prepare parasite head

Pavel Emelyanov xemul at parallels.com
Fri May 15 04:25:51 PDT 2015


On 05/11/2015 07:06 PM, Cyrill Gorcunov wrote:
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  arch/x86/include/asm/parasite.h |  4 ++++
>  arch/x86/parasite-head.S        | 23 +++++++++++++++++++++++
>  pie/parasite.c                  |  6 +++++-
>  3 files changed, 32 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/x86/include/asm/parasite.h b/arch/x86/include/asm/parasite.h
> index 48e48ac988b7..669ae63e26cc 100644
> --- a/arch/x86/include/asm/parasite.h
> +++ b/arch/x86/include/asm/parasite.h
> @@ -1,6 +1,10 @@
>  #ifndef __ASM_PARASITE_H__
>  #define __ASM_PARASITE_H__
>  
> +#ifdef CONFIG_X86_32
> +# define __parasite_entry __attribute__((regparm(3)))
> +#endif

Some comment why this is required for 32-bit and NOT required for 64 is required :)

> +
>  static inline void arch_get_tls(tls_t *ptls) { (void)ptls; }
>  
>  #endif



More information about the CRIU mailing list