From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from cavan.codon.org.uk ([2a00:1098:0:80:1000:c:0:1]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VUflF-00009N-Nt for kexec@lists.infradead.org; Fri, 11 Oct 2013 16:40:22 +0000 Date: Fri, 11 Oct 2013 17:39:33 +0100 From: Matthew Garrett Subject: Re: kexec: Clearing registers just before jumping into purgatory Message-ID: <20131011163933.GA31941@srcf.ucam.org> References: <20131011092837.GZ3626@debian70-amd64.local.net-space.pl> <877gdkce6s.fsf@tw-ebiederman.twitter.com> <20131011110455.GA3626@debian70-amd64.local.net-space.pl> <20131011125206.GA2772@redhat.com> <20131011153727.GA30181@srcf.ucam.org> <20131011154450.GB2772@redhat.com> <20131011154805.GB30181@srcf.ucam.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: Richard Weinberger Cc: keir@xen.org, Kees Cook , Daniel Kiper , kexec@lists.infradead.org, LKML , xen-devel@lists.xen.org, hbabu@us.ibm.com, "Eric W. Biederman" , jbeulich@suse.com, "H. Peter Anvin" , Vivek Goyal , david.vrabel@citrix.com On Fri, Oct 11, 2013 at 06:33:23PM +0200, Richard Weinberger wrote: > On Fri, Oct 11, 2013 at 5:48 PM, Matthew Garrett wrote: > > On Fri, Oct 11, 2013 at 11:44:50AM -0400, Vivek Goyal wrote: > > > >> Just Curious. How is it useful. IOW, what's your use case of booting a new > >> kernel and then jumping back. > > > > I'm kexecing into a kernel with a modified /dev/mem, modifying the > > original kernel and then jumping back into it. > > How do you update the original kernel? It's still in RAM, so the same way you'd modify any other arbitrary physical address? -- Matthew Garrett | mjg59@srcf.ucam.org _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec