Commit bb760d88 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

x86: cpu -- Check for xsaves bit on cpu validation

Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent c2905da5
...@@ -231,7 +231,8 @@ static int cpu_validate_features(compel_cpuinfo_t *cpu_info) ...@@ -231,7 +231,8 @@ static int cpu_validate_features(compel_cpuinfo_t *cpu_info)
!compel_cpu_has_feature(__bit)) !compel_cpu_has_feature(__bit))
if (__mismatch_fpu_bit(X86_FEATURE_FPU) || if (__mismatch_fpu_bit(X86_FEATURE_FPU) ||
__mismatch_fpu_bit(X86_FEATURE_FXSR) || __mismatch_fpu_bit(X86_FEATURE_FXSR) ||
__mismatch_fpu_bit(X86_FEATURE_OSXSAVE)) { __mismatch_fpu_bit(X86_FEATURE_OSXSAVE) ||
__mismatch_fpu_bit(X86_FEATURE_XSAVES)) {
pr_err("FPU feature required by image " pr_err("FPU feature required by image "
"is not supported on host.\n"); "is not supported on host.\n");
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment