[CRIU] [PATCH 01/20] x86: moved x86-specific files into the directory arch/x86.
Alexander Kartashov
alekskartashov at parallels.com
Sat Dec 22 10:42:56 EST 2012
On 12/13/2012 10:45 AM, Alexander Kartashov wrote:
> On 12/12/2012 07:43 PM, Pavel Emelyanov wrote:
>>> +
>>> >+#ifdef CONFIG_X86_64
>>> >+# define AT_VECTOR_SIZE 44
>>> >+#else
>>> >+# define AT_VECTOR_SIZE 22 /* Not needed at moment */
>>> >+#endif
>>> >+
>>> >+typedef uint64_t auxv_t;
>> This is uint64_t for arm as well, why in arch?
>>
>
> I have to check this out: it seems I had a problem with AUX vectors.
>
An AUXV has the size of a machine pointer:
http://lxr.free-electrons.com/source/kernel/sys.c#L1953
In the protobuf description (protobuf/mm.h) an AUX vector is stored as a
64-bit entity. So we have
to the convert protobuf representation into native using the loop
instead of memcpy.
--
Sincerely yours,
Alexander Kartashov
Intern
Core team
www.parallels.com
Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com
More information about the CRIU
mailing list