2eefd87896
Add API to change vdso blob type with arch_prctl. As this is usefull only by needs of CRIU, expose this interface under CONFIG_CHECKPOINT_RESTORE. Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Acked-by: Andy Lutomirski <luto@kernel.org> Cc: 0x7f454c46@gmail.com Cc: oleg@redhat.com Cc: linux-mm@kvack.org Cc: gorcunov@openvz.org Cc: xemul@virtuozzo.com Link: http://lkml.kernel.org/r/20160905133308.28234-4-dsafonov@virtuozzo.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
16 lines
331 B
C
16 lines
331 B
C
#ifndef _ASM_X86_PRCTL_H
|
|
#define _ASM_X86_PRCTL_H
|
|
|
|
#define ARCH_SET_GS 0x1001
|
|
#define ARCH_SET_FS 0x1002
|
|
#define ARCH_GET_FS 0x1003
|
|
#define ARCH_GET_GS 0x1004
|
|
|
|
#ifdef CONFIG_CHECKPOINT_RESTORE
|
|
# define ARCH_MAP_VDSO_X32 0x2001
|
|
# define ARCH_MAP_VDSO_32 0x2002
|
|
# define ARCH_MAP_VDSO_64 0x2003
|
|
#endif
|
|
|
|
#endif /* _ASM_X86_PRCTL_H */
|