[CRIU] [PATCH 4/5] vdso: parasite -- Prepare new vdso mark structure.

Pavel Emelyanov xemul at parallels.com
Wed Jun 11 04:23:24 PDT 2014


On 06/10/2014 10:16 PM, Cyrill Gorcunov wrote:
> 
> Because of new vvar area we need to carry the
> address of vvar proxy inside the mark. Thus
> add members needed and update routines.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  arch/x86/include/asm/vdso.h | 36 ++++++++++++++++++++++++++++--------
>  arch/x86/vdso-pie.c         |  2 +-
>  arch/x86/vdso.c             |  4 ++--
>  include/parasite.h          |  3 ++-
>  pie/parasite.c              |  6 ++++--
>  5 files changed, 37 insertions(+), 14 deletions(-)
> 


> struct vdso_mark {
>  	u64			signature;
> -	unsigned long		proxy_addr;
> +	unsigned long		proxy_vdso_addr;
> +
> +	unsigned long		version;

Why do we need the version field? AFAIU the signature is enough.

> +
> +	/*
> +	 * In case of new vDSO format the VVAR area address
> +	 * neeed for easier discovering where it lives without
> +	 * relying on procfs output.
> +	 */
> +	unsigned long		proxy_vvar_addr;
>  };



More information about the CRIU mailing list