criu/compel/include
Kir Kolyshkin 735ffc1d7e Sanitize TASK_ values
First, TASK_* defines provided by compel should be prefixed
with COMPEL_. The complication is, same constants are also used
by CRIU, some are even writted into images (meaning we should
not change their values).

One way to solve this would be to untie compel values from CRIU ones,
using some mapping between the two sets when needed (i.e. in calls to
compel_wait_task() and compel_resume_task()).

Fortunately, we can avoid implementing this mapping by separating
the ranges used by compel and criu. With this patch, compel is using
values in range 0x01..0x7f, and criu is reusing those, plus adding
more values in range 0x80..0xff for its own purposes.

Note tha the values that are used inside images are not changed
(as, luckily, they were all used by compel).

travis-ci: success for compel uapi cleanups (rev2)
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-15 09:36:05 +03:00
..
uapi Sanitize TASK_ values 2017-03-15 09:36:05 +03:00
compel-cpu.h compel: Split cpu.h heander into uapi and priv parts 2017-03-15 00:06:10 +03:00
elf32-types.h compel: Reshuffle the directories structure 2017-03-14 23:58:09 +03:00
elf64-types.h compel: Reshuffle the directories structure 2017-03-14 23:58:09 +03:00
errno.h infect: Move errno.h to compel 2017-03-15 00:06:01 +03:00
infect-priv.h compel_syscall(): make ret argument signed 2017-03-15 00:09:54 +03:00
log.h compel: Add callback-based log engine 2017-03-15 00:06:02 +03:00
piegen.h compel hgen: drop -u option 2017-03-15 00:06:17 +03:00
ptrace.h compel: split sanitize ptrace.h 2017-03-15 09:36:04 +03:00
rpc-pie-priv.h compel: kill self-unmap in parasite 2017-03-15 00:06:14 +03:00
shmem.h compel: plugins -- Add shmem plugin 2017-03-14 23:58:09 +03:00