[CRIU] [PATCHv3 01/30] x86/dump: save gpregs_case
Dmitry Safonov
dsafonov at virtuozzo.com
Tue Jun 28 12:23:54 PDT 2016
Missed has_gpregs_case and on restore it's always native task.
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
criu/arch/x86/crtools.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/criu/arch/x86/crtools.c b/criu/arch/x86/crtools.c
index 8fd82ee674b6..991032f722d0 100644
--- a/criu/arch/x86/crtools.c
+++ b/criu/arch/x86/crtools.c
@@ -238,6 +238,7 @@ int get_task_regs(pid_t pid, user_regs_struct_t regs, CoreEntry *core)
assign_reg(gpregs, regs.compat, ss);
gpregs->gpregs_case = USER_X86_REGS_CASE_T__COMPAT;
}
+ gpregs->has_gpregs_case = true;
#ifndef PTRACE_GETREGSET
# define PTRACE_GETREGSET 0x4204
--
2.9.0
More information about the CRIU
mailing list