• Kir Kolyshkin's avatar
    Sanitize TASK_ values · 735ffc1d
    Kir Kolyshkin authored
    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: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    735ffc1d
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...