[CRIU] [PATCH 08/14] restore: Reserve space in restorer for FPU frame

Pavel Emelyanov xemul at parallels.com
Wed Dec 19 15:26:31 EST 2012


On 12/19/2012 08:31 PM, Cyrill Gorcunov wrote:
> 
> For code simplicity we reserve the maximum size which
> might be needed to form an FPU frame (ie for both
> xsave and fxsave operations).
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  include/restorer.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 


> +
> +	bool				has_fpu;
> +	union {
> +		struct xsave_struct	xsave;
> +		unsigned char		__pad[sizeof(struct xsave_struct) + FP_XSTATE_MAGIC2_SIZE];

What is this padding for?

> +	};



More information about the CRIU mailing list