From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATH 0/1] Kexec jump - v2 - the first step to kexec based hibernation Date: Tue, 31 Jul 2007 13:12:08 +0200 Message-ID: <20070731111208.GA1778@elf.ucw.cz> References: <1184483593.1898.98.camel@caritas-dev.intel.com> <20070731091004.GA2022@elf.ucw.cz> <1185873924.23149.86.camel@caritas-dev.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: "Eric W. Biederman" Cc: david@lang.hm, nigel@nigel.suspend2.net, Kexec Mailing List , linux-kernel@vger.kernel.org, "Huang, Ying" , Andrew Morton , linux-pm@lists.linux-foundation.org, Jeremy Maitin-Shepard List-Id: linux-pm@vger.kernel.org Hi! > >> > > >> > +/* Adds the kexec_backup= command line parameter to command line. */ > >> > +static int cmdline_add_backup(char *cmdline, unsigned long addr) > >> > +{ > >> > + int cmdlen, len, align = 1024; > >> > + char str[30], *ptr; > >> > + > >> > + /* Passing in kexec_backup=xxxK format. Saves space required > >> > + * in cmdline. Ensure 1K alignment*/ > >> > + if (addr%align) > >> > + return -1; > >> > + addr = addr/align; > >> > + ptr = str; > >> > + strcpy(str, " kexec_backup="); > >> > + ptr += strlen(str); > >> > + ultoa(addr, ptr); > >> > + strcat(str, "K"); > >> > + len = strlen(str); > >> > + cmdlen = strlen(cmdline) + len; > >> > + if (cmdlen > (COMMAND_LINE_SIZE - 1)) > >> > + die("Command line overflow\n"); > >> > + strcat(cmdline, str); > >> > + return 0; > >> > +} > >> > >> This part did not apply for me -- it seems crashdump related and I did > >> not have that applied. Is it critical? > > > > This is needed for kexec_jump to work properly. Which version of > > kexec-tools do you use? This patch is against 1.101. The kdump patch > > must be applied before this patch is applied. > > Please work against the kexec-tools-testing tree, if you can. > All of the outstanding patches should be there. So git://git.kernel.org/pub/scm/linux/kernel/git/horms/kexec-tools-testing.git is the right tree to use? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html