2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

zdtm/static/fpu01: check for OSXSAVE instead of XSAVE

When checking for XSAVE availability it makes more sense
to check for OSXSAVE than to check for XSAVE. This way the
check works on systems booted with the 'noxsave' kernel
command-line.

travis-ci: success for zdtm/static/fpu01: check for OSXSAVE instead of XSAVE
Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Adrian Reber
2017-02-08 16:06:00 +03:00
committed by Andrei Vagin
parent 8512efdf88
commit b2009641c4

View File

@@ -19,7 +19,7 @@ static int verify_cpu(void)
/* Do we have xsave? */
cpuid(1, &eax, &ebx, &ecx, &edx);
if (!(ecx & (1u << 26)))
if (!(ecx & (1u << 27)))
return -1;
/* Is YMM here? */