From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6342ADDED2 for ; Thu, 5 Feb 2009 07:58:58 +1100 (EST) Subject: Re: [PATCH 1/3] powerpc: bare minimum checkpoint/restart implementation From: Benjamin Herrenschmidt To: "Serge E. Hallyn" In-Reply-To: <20090204155406.GA2039@us.ibm.com> References: <1233182478-27113-1-git-send-email-ntl@pobox.com> <1233182478-27113-2-git-send-email-ntl@pobox.com> <1233718789.16867.156.camel@pasglop> <20090204155406.GA2039@us.ibm.com> Content-Type: text/plain Date: Thu, 05 Feb 2009 07:58:19 +1100 Message-Id: <1233781099.4612.1.camel@pasglop> Mime-Version: 1.0 Cc: containers@lists.osdl.org, linuxppc-dev@ozlabs.org, Nathan Lynch List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2009-02-04 at 09:54 -0600, Serge E. Hallyn wrote: > Quoting Benjamin Herrenschmidt (benh@kernel.crashing.org): > > > > > +struct cr_hdr_cpu { > > > + struct pt_regs pt_regs; > > > + /* relevant fields from thread_struct */ > > > + double fpr[32][TS_FPRWIDTH]; > > > + unsigned int fpscr; > > > + int fpexc_mode; > > > + /* unsigned int align_ctl; this is never updated? */ > > > + unsigned long dabr; > > > +}; > > > > Is there some version or other identification somewhere ? If not there > > should be. ie, we're going to add things here. For example, what about > > the vector registers ? Also, some CPUs will have more HW debug registers > > than just the DABR (we plan to add support for all the BookE architected > > IACs and DACs for example), etc... > > The arch-independent checkpoint header does have kernel > maj:min:rev:patch info. We expect to have to do more, > assuming that the .config can change the arch-dependent > cpu header (i.e. perhaps TS_FPRWIDTH could be changed). It could to a certain extent... things like VSX, VSR, or freescale SPE, or even the Cell SPU state etc.... I wonder if we want a tagged structure so we can easily add things... Ben.