• Adrian Reber's avatar
    xsave: check for X86_FEATURE_OSXSAVE rather than for X86_FEATURE_XSAVE · 7ac2d79c
    Adrian Reber authored
    Migrating a process between a system with the 'xsave' CPU flag and
    another system without the 'xsave' CPU flags is not possible and
    fails during restore. To avoid this situation it is possible to boot
    the source system of the migration with 'noxsave' kernel command-line.
    
    Unfortunately criu currently tries to detect the presence of 'xsave'
    with the macro X86_FEATURE_XSAVE which represents the features of
    the CPU without taking into account if the operating system has
    disabled 'xsave'. Checking for 'xsave' availability with the macro
    X86_FEATURE_OSXSAVE detects correctly if Linux has been booted
    with disabled 'xsave' and thus migrating processes between hosts
    with and without 'xsave' is possible if the kernel uses the flag
    'noxsave'.
    
    travis-ci: success for criu dump fails when using noxsave (rev2)
    Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
    Reviewed-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    7ac2d79c
Name
Last commit
Last update
Documentation 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.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...