Re: [Fastboot] Re: [PATCH][2/6]Memory preserving reboot using kexec

From: Eric W. Biederman
Date: Mon Sep 20 2004 - 15:01:08 EST


Hariprasad Nellitheertha <hari@xxxxxxxxxx> writes:

> Hi Eric,
>
> On Sun, Sep 19, 2004 at 02:37:18PM -0600, Eric W. Biederman wrote:
> > Hariprasad Nellitheertha <hari@xxxxxxxxxx> writes:
> >
> > > This patch contains the code that does the memory preserving reboot. It
> > > copies over the first 640k into a backup region before handing over to
> > > kexec. The second kernel will boot using only the backup region.
> >
> > Do you know what the kernel does with the low 1M?
> >
> > Nothing in the hardware architecture requires us to use the
> > low 1M. So I think we would be safer if we could track down
> > and remove this dependency.
> >
> > In general I agree that we need to be prepared to save some of the
> > original machine state, because some architectures give special
> > meaning to addresses in memory. But x86 is not one of those.
> >
> > Perhaps the proper abstraction is to add a use_mem= variable
> > that simply tells us which memory addresses we can use.
> >
> > By still doing some copying we run into the problem, of
> > potentially running out of memory areas where ongoing DMA
> > transfers may be happening. So this is worth
> > tracking down.
>
> I am trying to track this down. I tried moving the first segment of vmlinux
> into the reserved section by modifying kexec-tools. This is the command line
> argument segment. It still seems to need the first few kilobytes, though.

Right that is being automatically placed there.
For testing it should not be too hard to hard code it at someplace
appropriate.

> Eliminating this is definitely needed so we can avoid using the first
> kernel's region completely.
>
> Also, I will make the changes in the rest of the patch as per your review
> comments.

Thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/