[CRIU] [PATCH 2/8] [v3] cr: generalize the type to store the value of the TLS register

Cyrill Gorcunov gorcunov at gmail.com
Tue Mar 18 10:08:48 PDT 2014


On Tue, Mar 18, 2014 at 09:05:51PM +0400, Alexander Kartashov wrote:
> Supported machine architectures provide TLS stogares of different sizes:
> the size of the TLS storage in x86-64 is 24 bytes, ARM --- 4 bytes
> and upcoming AArch64 --- 8 bytes. This means every supported architecture
> needs a specific type to store the value of the TLS register.
> 
> This patch reworks the insterface of the routines arch_get_tls()
> and restore_tls() passing them the TLS storage by pointer
> rather than by value to simplify the TLS stub for x86.
> 
> Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>

I know nothing about ARM specifics, but x86 part looks good for me, thus

Reviewed-by: Cyrill Gorcunov <gorcunov at openvz.org>


More information about the CRIU mailing list