From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oren Laadan Subject: Re: [PATCH linux-cr] s390: save_access_regs for self-checkpoint Date: Mon, 01 Mar 2010 14:20:21 -0500 Message-ID: <4B8C1375.3060203@cs.columbia.edu> References: <20100225170554.GA16683@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100225170554.GA16683-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Serge E. Hallyn" Cc: Linux Containers List-Id: containers.vger.kernel.org Applied Serge E. Hallyn wrote: > When doing a self-checkpoint, we have to get the access registers > from hw. > > Signed-off-by: Serge E. Hallyn > --- > 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); > }