• 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
task-state.h 456 Bytes