criu/compel
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
..
arch compel: add compel_ prefix to cpu_has_feature 2017-03-15 09:36:05 +03:00
include Sanitize TASK_ values 2017-03-15 09:36:05 +03:00
plugins Makefile: add AddressSanitizer to CFLAGS 2017-03-15 09:36:04 +03:00
src Sanitize TASK_ values 2017-03-15 09:36:05 +03:00
test compel cli: make -p optional 2017-03-15 00:09:57 +03:00
.gitignore gitignores: ignore some more generated files 2017-03-15 00:05:55 +03:00
compel-host compel cli: show includes 2017-03-15 00:09:55 +03:00
Makefile compel cli: add libs command, use it 2017-03-15 00:09:57 +03:00