[CRIU] [PATCH v4 4/5] aio: Restore aio ring content

Pavel Emelyanov xemul at virtuozzo.com
Wed Mar 23 05:34:01 PDT 2016


> +populate:
> +	count = raio->len/sizeof(unsigned long);
> +	i = offsetof(struct aio_ring, io_events)/sizeof(unsigned long);
> +
> +	for (; i < count; i++)
> +		((unsigned long *)ctx)[i] = ((unsigned long *)ring)[i];

We have builtin_memcpy() for pie code. Would it work?

>  
>  	/*
>  	 * If we failed to get the proper nr_req right and



More information about the CRIU mailing list