lkml.org 
[lkml]   [2007]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] Hibernation: Document __save_processor_state() on x86-64
Date
On Sunday, 30 of December 2007, Ingo Molnar wrote:
>
> * Rafael J. Wysocki <rjw@sisk.pl> wrote:
>
> > > how different can it be, for resume to work? I mean, we'll have
> > > deeply kernel version dependent variables in RAM. Am i missing
> > > something obvious?
> >
> > On x86-64 it can be almost totally different (by restoring a
> > hibernation image we replace the entire contents of RAM with almost no
> > constraints).
> >
> > [Well, using a relocatable kernel for restoring an image with
> > nonrelocatable one or vice versa is rather not the best idea, but
> > everything else should work in theory.]
> >
> > On i386 the boot kernel is still required to be the same as the one in
> > the image.
>
> what's exactly in the hibernation image? Dirty data i suppose

No, everything, including the kernel code, page tables etc. :-)

> - but what about kernel-internal pages. What if we go from SLAB to SLUB?
> What if the size of a structure changes? Etc.

We can go from SLAB to SLUB just fine, it doesn't matter. The only thing
that matters is we have to jump to the right address at the end of
core_restore_code() (defined in arch/x86/kernel/suspend_asm_64.S).

Rafael


\
 
 \ /
  Last update: 2007-12-30 22:51    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site