[PATCH linux-cr] s390: save_access_regs for self-checkpoint

Serge E. Hallyn serue at us.ibm.com
Thu Feb 25 09:05:54 PST 2010


When doing a self-checkpoint, we have to get the access registers
from hw.

Signed-off-by: Serge E. Hallyn <serue at us.ibm.com>
---
 arch/s390/kernel/checkpoint.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/s390/kernel/checkpoint.c b/arch/s390/kernel/checkpoint.c
index 03307e2..894bca3 100644
--- a/arch/s390/kernel/checkpoint.c
+++ b/arch/s390/kernel/checkpoint.c
@@ -79,7 +79,11 @@ static void s390_copy_regs(int op, struct ckpt_hdr_cpu *h,
 	}
 
 	CKPT_COPY_ARRAY(op, h->fprs, thr->fp_regs.fprs, NUM_FPRS);
-	CKPT_COPY_ARRAY(op, h->acrs, thr->acrs, NUM_ACRS);
+	if (op == CKPT_CPT && t == current) {
+		save_access_regs(h->acrs);
+	} else {
+		CKPT_COPY_ARRAY(op, h->acrs, thr->acrs, NUM_ACRS);
+	}
 	CKPT_COPY_ARRAY(op, h->per_control_regs,
 		      thr->per_info.control_regs.words.cr, NUM_CR_WORDS);
 }
-- 
1.6.1



More information about the Containers mailing list