[lkml]   [2004]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Fastboot] [RFC]Kexec based crash dumping
On Fri, Aug 20, 2004 at 02:05:54AM -0600, Eric W. Biederman wrote:
> Hariprasad Nellitheertha <> writes:
> > Hi,
> >
> > The patches that follow contain the initial implementation for kexec based
> > crash dumping that we are working on. I had sent this to the fastboot mailing
> > list a couple of weeks ago and this set of patches includes the changes made as
> > per feedback from Andrew, Eric and others.
> One significant change is missing. You do not separate out the two
> use cases of kexec. So on a system that is configured to use
> call sys_reboot(LINUX_REBOOT_CMD_KEXEC) on reboot I will get a core
> dump if using your code.

In some ways, whether we are doing a "crash dump" reboot or a "normal"
kexec reboot is determined by the command line parameters that are
passed to the kexec loaded kernel. If we do not restrict the memory
size and do not add the keyword "dump" in the command line, it will do
a normal kexec reboot. The dump file will not show up in the second kernel.

> Or alternatively if I call sys_kexec_load and then something in the
> shutdown scripts triggers a kernel panic it is not OK to
> start boot the new kernel instead of taking normal panic behavior.

A way to disable kexec reboot from panic code is indeed needed. I will
add the necessary code to do this.

> Until the two uses of kexec are separated they two uses
> of kexec remain mutually exclusive and incompatible, and it I cannot
> merge your patches into the existing kexec patchset.
> .....
> In general I still your kexec on panic code is doing way to much,
> and I think a lot of that is that you don't have a kernel that will
> run when loaded at a different physical address.
> To that end I have written a patch that accomplishes exactly that.
> Please see my just released kexec patchset.

Will work on the necessary changes so we can use your patchset.

> Eric

Thanks and Regards, Hari
Hariprasad Nellitheertha
Linux Technology Center
India Software Labs
IBM India, Bangalore
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:05    [W:0.088 / U:4.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site