[CRIU] [PATCH 06/11] x86: cpu -- Check for xsaves bit on cpu validation

Cyrill Gorcunov gorcunov at gmail.com
Thu Jun 14 20:27:25 MSK 2018


Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/arch/x86/cpu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/criu/arch/x86/cpu.c b/criu/arch/x86/cpu.c
index b32b8824fa26..375a77550811 100644
--- a/criu/arch/x86/cpu.c
+++ b/criu/arch/x86/cpu.c
@@ -231,7 +231,8 @@ static int cpu_validate_features(compel_cpuinfo_t *cpu_info)
 		 !compel_cpu_has_feature(__bit))
 		if (__mismatch_fpu_bit(X86_FEATURE_FPU)		||
 		    __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 "
 			       "is not supported on host.\n");
 			return -1;
-- 
2.14.4



More information about the CRIU mailing list