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

Kirill Tkhai ktkhai at virtuozzo.com
Wed Mar 23 05:42:26 PDT 2016



On 23.03.2016 15:34, Pavel Emelyanov wrote:
> 
>> +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?

Yes, thanks!
 
>>  
>>  	/*
>>  	 * If we failed to get the proper nr_req right and
> 


More information about the CRIU mailing list